Class 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 for PodDnsProps
    • 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.
    • Method Detail

      • getHostname

        public final String getHostname()
        Description copied from interface: PodDnsProps
        Specifies the hostname of the Pod.

        Default: - Set to a system-defined value.

        Specified by:
        getHostname in interface PodDnsProps
      • getHostnameAsFQDN

        public final Boolean getHostnameAsFQDN()
        Description copied from interface: PodDnsProps
        If 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:
        getHostnameAsFQDN in interface PodDnsProps
      • getNameservers

        public final List<String> getNameservers()
        Description copied from interface: PodDnsProps
        A 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:
        getNameservers in interface PodDnsProps
      • getOptions

        public final List<DnsOption> getOptions()
        Description copied from interface: PodDnsProps
        List 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:
        getOptions in interface PodDnsProps
      • getPolicy

        public final DnsPolicy getPolicy()
        Description copied from interface: PodDnsProps
        Set DNS policy for the pod.

        If policy is set to None, other configuration must be supplied.

        Default: DnsPolicy.CLUSTER_FIRST

        Specified by:
        getPolicy in interface PodDnsProps
      • getSearches

        public final List<String> getSearches()
        Description copied from interface: PodDnsProps
        A 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:
        getSearches in interface PodDnsProps
      • getSubdomain

        public final String getSubdomain()
        Description copied from interface: PodDnsProps
        If specified, the fully qualified Pod hostname will be "...svc.".

        Default: - No subdomain.

        Specified by:
        getSubdomain in interface PodDnsProps
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object