Class PodDnsProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.PodDnsProps.Jsii$Proxy
-
- All Implemented Interfaces:
PodDnsProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PodDnsProps
@Stability(Stable) @Internal public static final class PodDnsProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodDnsProps
An implementation forPodDnsProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.PodDnsProps
PodDnsProps.Builder, PodDnsProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PodDnsProps.Builder builder)Constructor that initializes the object based on literal property values passed by thePodDnsProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetHostname()Specifies the hostname of the Pod.BooleangetHostnameAsFQDN()If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).List<String>getNameservers()A list of IP addresses that will be used as DNS servers for the Pod.List<DnsOption>getOptions()List of objects where each object may have a name property (required) and a value property (optional).DnsPolicygetPolicy()Set DNS policy for the pod.List<String>getSearches()A list of DNS search domains for hostname lookup in the Pod.StringgetSubdomain()If specified, the fully qualified Pod hostname will be ". . .svc. ". inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PodDnsProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodDnsProps.Builder.
-
-
Method Detail
-
getHostname
public final String getHostname()
Description copied from interface:PodDnsPropsSpecifies the hostname of the Pod.Default: - Set to a system-defined value.
- Specified by:
getHostnamein interfacePodDnsProps
-
getHostnameAsFQDN
public final Boolean getHostnameAsFQDN()
Description copied from interface:PodDnsPropsIf true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect.
Default: false
- Specified by:
getHostnameAsFQDNin interfacePodDnsProps
-
getNameservers
public final List<String> getNameservers()
Description copied from interface:PodDnsPropsA list of IP addresses that will be used as DNS servers for the Pod.There can be at most 3 IP addresses specified. When the policy is set to "NONE", the list must contain at least one IP address, otherwise this property is optional. The servers listed will be combined to the base nameservers generated from the specified DNS policy with duplicate addresses removed.
- Specified by:
getNameserversin interfacePodDnsProps
-
getOptions
public final List<DnsOption> getOptions()
Description copied from interface:PodDnsPropsList of objects where each object may have a name property (required) and a value property (optional).The contents in this property will be merged to the options generated from the specified DNS policy. Duplicate entries are removed.
- Specified by:
getOptionsin interfacePodDnsProps
-
getPolicy
public final DnsPolicy getPolicy()
Description copied from interface:PodDnsPropsSet DNS policy for the pod.If policy is set to
None, other configuration must be supplied.Default: DnsPolicy.CLUSTER_FIRST
- Specified by:
getPolicyin interfacePodDnsProps
-
getSearches
public final List<String> getSearches()
Description copied from interface:PodDnsPropsA list of DNS search domains for hostname lookup in the Pod.When specified, the provided list will be merged into the base search domain names generated from the chosen DNS policy. Duplicate domain names are removed.
Kubernetes allows for at most 6 search domains.
- Specified by:
getSearchesin interfacePodDnsProps
-
getSubdomain
public final String getSubdomain()
Description copied from interface:PodDnsPropsIf specified, the fully qualified Pod hostname will be ". . .svc. ". Default: - No subdomain.
- Specified by:
getSubdomainin interfacePodDnsProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-