Enum DnsPolicy
- All Implemented Interfaces:
Serializable
,Comparable<DnsPolicy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:11.992Z")
@Stability(Stable)
public enum DnsPolicy
extends Enum<DnsPolicy>
The DNS Policy for the pod used by the Job Definition.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAny 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.For Pods running withhostNetwork
, you should explicitly set its DNS policy toCLUSTER_FIRST_WITH_HOST_NET
.The Pod inherits the name resolution configuration from the node that the Pods run on. -
Method Summary
-
Enum Constant Details
-
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 withhostNetwork
, you should explicitly set its DNS policy toCLUSTER_FIRST_WITH_HOST_NET
.Otherwise, Pods running with
hostNetwork
andCLUSTER_FIRST
will fallback to the behavior of theDEFAULT
policy.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-