Module: CDK8sPlus25::DNSPolicy

Defined in:
dns_policy.rb

Overview

Pod DNS policies.

Constant Summary collapse

CLUSTER_FIRST =

Any DNS query that does not match the configured cluster domain suffix, such as "www.kubernetes.io", is forwarded to the upstream nameserver inherited from the node. Cluster administrators may have extra stub-domain and upstream DNS servers configured.

Jsii::Enum.new("cdk8s-plus-25.DnsPolicy", "CLUSTER_FIRST")
CLUSTER_FIRST_WITH_HOST_NET =

For Pods running with hostNetwork, you should explicitly set its DNS policy "ClusterFirstWithHostNet".

Jsii::Enum.new("cdk8s-plus-25.DnsPolicy", "CLUSTER_FIRST_WITH_HOST_NET")
DEFAULT =

The Pod inherits the name resolution configuration from the node that the pods run on.

Jsii::Enum.new("cdk8s-plus-25.DnsPolicy", "DEFAULT")
NONE =

It allows a Pod to ignore DNS settings from the Kubernetes environment.

All DNS settings are supposed to be provided using the dnsConfig field in the Pod Spec.

Jsii::Enum.new("cdk8s-plus-25.DnsPolicy", "NONE")