@aws-cdk_aws-batch-alpha.DnsPolicy

enum DnsPolicy ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.DnsPolicy
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#DnsPolicy
Javasoftware.amazon.awscdk.services.batch.alpha.DnsPolicy
Pythonaws_cdk.aws_batch_alpha.DnsPolicy
TypeScript (source)@aws-cdk/aws-batch-alpha ยป DnsPolicy

The DNS Policy for the pod used by the Job Definition.

See also: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy

Members

NameDescription
DEFAULT ๐Ÿ”นThe Pod inherits the name resolution configuration from the node that the Pods run on.
CLUSTER_FIRST ๐Ÿ”นAny DNS query that does not match the configured cluster domain suffix, such as "www.kubernetes.io", is forwarded to an upstream nameserver by the DNS server. Cluster administrators may have extra stub-domain and upstream DNS servers configured.
CLUSTER_FIRST_WITH_HOST_NET ๐Ÿ”นFor Pods running with hostNetwork, you should explicitly set its DNS policy to CLUSTER_FIRST_WITH_HOST_NET.

DEFAULT ๐Ÿ”น

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


CLUSTER_FIRST ๐Ÿ”น

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


CLUSTER_FIRST_WITH_HOST_NET ๐Ÿ”น

For Pods running with hostNetwork, you should explicitly set its DNS policy to CLUSTER_FIRST_WITH_HOST_NET.

Otherwise, Pods running with hostNetwork and CLUSTER_FIRST will fallback to the behavior of the DEFAULT policy.