Class LocalDnsProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.LocalDnsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LocalDnsProfile>
public final class LocalDnsProfile
extends Object
implements com.azure.json.JsonSerializable<LocalDnsProfile>
Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS helps improve performance and
reliability of DNS resolution in an AKS cluster. For more details see aka.ms/aks/localdns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDnsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LocalDnsProfile from the JsonReader.Get the kubeDnsOverrides property: KubeDNS overrides apply to DNS traffic from pods with dnsPolicy:ClusterFirst (referred to as KubeDNS traffic).mode()Get the mode property: Mode of enablement for localDNS.state()Get the state property: System-generated state of localDNS.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vnetDnsOverrides property: VnetDNS overrides apply to DNS traffic from pods with dnsPolicy:default or kubelet (referred to as VnetDNS traffic).withKubeDnsOverrides(Map<String, LocalDnsOverride> kubeDnsOverrides) Set the kubeDnsOverrides property: KubeDNS overrides apply to DNS traffic from pods with dnsPolicy:ClusterFirst (referred to as KubeDNS traffic).withMode(LocalDnsMode mode) Set the mode property: Mode of enablement for localDNS.withVnetDnsOverrides(Map<String, LocalDnsOverride> vnetDnsOverrides) Set the vnetDnsOverrides property: VnetDNS overrides apply to DNS traffic from pods with dnsPolicy:default or kubelet (referred to as VnetDNS traffic).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LocalDnsProfile
public LocalDnsProfile()Creates an instance of LocalDnsProfile class.
-
-
Method Details
-
mode
Get the mode property: Mode of enablement for localDNS.- Returns:
- the mode value.
-
withMode
Set the mode property: Mode of enablement for localDNS.- Parameters:
mode- the mode value to set.- Returns:
- the LocalDnsProfile object itself.
-
state
Get the state property: System-generated state of localDNS.- Returns:
- the state value.
-
vnetDnsOverrides
Get the vnetDnsOverrides property: VnetDNS overrides apply to DNS traffic from pods with dnsPolicy:default or kubelet (referred to as VnetDNS traffic).- Returns:
- the vnetDnsOverrides value.
-
withVnetDnsOverrides
Set the vnetDnsOverrides property: VnetDNS overrides apply to DNS traffic from pods with dnsPolicy:default or kubelet (referred to as VnetDNS traffic).- Parameters:
vnetDnsOverrides- the vnetDnsOverrides value to set.- Returns:
- the LocalDnsProfile object itself.
-
kubeDnsOverrides
Get the kubeDnsOverrides property: KubeDNS overrides apply to DNS traffic from pods with dnsPolicy:ClusterFirst (referred to as KubeDNS traffic).- Returns:
- the kubeDnsOverrides value.
-
withKubeDnsOverrides
Set the kubeDnsOverrides property: KubeDNS overrides apply to DNS traffic from pods with dnsPolicy:ClusterFirst (referred to as KubeDNS traffic).- Parameters:
kubeDnsOverrides- the kubeDnsOverrides value to set.- Returns:
- the LocalDnsProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LocalDnsProfile>- Throws:
IOException
-
fromJson
Reads an instance of LocalDnsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LocalDnsProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LocalDnsProfile.
-