Class DNSConfig (2.20.0)

DNSConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

DNSConfig contains the desired set of options for configuring clusterDNS.

Attributes

NameDescription
cluster_dns google.cloud.container_v1beta1.types.DNSConfig.Provider
cluster_dns indicates which in-cluster DNS provider should be used.
cluster_dns_scope google.cloud.container_v1beta1.types.DNSConfig.DNSScope
cluster_dns_scope indicates the scope of access to cluster DNS records.
cluster_dns_domain str
cluster_dns_domain is the suffix used for all cluster service records.

Classes

DNSScope

DNSScope(value)

DNSScope lists the various scopes of access to cluster DNS records.

Values: DNS_SCOPE_UNSPECIFIED (0): Default value, will be inferred as cluster scope. CLUSTER_SCOPE (1): DNS records are accessible from within the cluster. VPC_SCOPE (2): DNS records are accessible from within the VPC.

Provider

Provider(value)

Provider lists the various in-cluster DNS providers.

Values: PROVIDER_UNSPECIFIED (0): Default value PLATFORM_DEFAULT (1): Use GKE default DNS provider(kube-dns) for DNS resolution. CLOUD_DNS (2): Use CloudDNS for DNS resolution.