Show / Hide Table of Contents

Enum DnsPolicy

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

Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum DnsPolicy
Syntax (vb)
Public Enum DnsPolicy
Remarks

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

Synopsis

Fields

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.

Fields

Name Description
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.

Back to top Generated by DocFX