Class DNSSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<DNSSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class DNSSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<DNSSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    DNSSpec is the specification of the desired behavior of the DNS.
    See Also:
    Serialized Form
    • Method Detail

      • getCache

        public DNSCache getCache()
        DNSSpec is the specification of the desired behavior of the DNS.
      • setCache

        public void setCache​(DNSCache cache)
        DNSSpec is the specification of the desired behavior of the DNS.
      • getLogLevel

        public String getLogLevel()
        logLevel describes the desired logging verbosity for CoreDNS. Any one of the following values may be specified: * Normal logs errors from upstream resolvers. * Debug logs errors, NXDOMAIN responses, and NODATA responses. * Trace logs errors and all responses.

        Setting logLevel: Trace will produce extremely verbose logs.

        Valid values are: "Normal", "Debug", "Trace". Defaults to "Normal".

      • setLogLevel

        public void setLogLevel​(String logLevel)
        logLevel describes the desired logging verbosity for CoreDNS. Any one of the following values may be specified: * Normal logs errors from upstream resolvers. * Debug logs errors, NXDOMAIN responses, and NODATA responses. * Trace logs errors and all responses.

        Setting logLevel: Trace will produce extremely verbose logs.

        Valid values are: "Normal", "Debug", "Trace". Defaults to "Normal".

      • getManagementState

        public String getManagementState()
        managementState indicates whether the DNS operator should manage cluster DNS
      • setManagementState

        public void setManagementState​(String managementState)
        managementState indicates whether the DNS operator should manage cluster DNS
      • getNodePlacement

        public DNSNodePlacement getNodePlacement()
        DNSSpec is the specification of the desired behavior of the DNS.
      • setNodePlacement

        public void setNodePlacement​(DNSNodePlacement nodePlacement)
        DNSSpec is the specification of the desired behavior of the DNS.
      • getOperatorLogLevel

        public String getOperatorLogLevel()
        operatorLogLevel controls the logging level of the DNS Operator. Valid values are: "Normal", "Debug", "Trace". Defaults to "Normal". setting operatorLogLevel: Trace will produce extremely verbose logs.
      • setOperatorLogLevel

        public void setOperatorLogLevel​(String operatorLogLevel)
        operatorLogLevel controls the logging level of the DNS Operator. Valid values are: "Normal", "Debug", "Trace". Defaults to "Normal". setting operatorLogLevel: Trace will produce extremely verbose logs.
      • getServers

        public List<Server> getServers()
        servers is a list of DNS resolvers that provide name query delegation for one or more subdomains outside the scope of the cluster domain. If servers consists of more than one Server, longest suffix match will be used to determine the Server.


        For example, if there are two Servers, one for "foo.com" and another for "a.foo.com", and the name query is for "www.a.foo.com", it will be routed to the Server with Zone "a.foo.com".


        If this field is nil, no servers are created.

      • setServers

        public void setServers​(List<Server> servers)
        servers is a list of DNS resolvers that provide name query delegation for one or more subdomains outside the scope of the cluster domain. If servers consists of more than one Server, longest suffix match will be used to determine the Server.


        For example, if there are two Servers, one for "foo.com" and another for "a.foo.com", and the name query is for "www.a.foo.com", it will be routed to the Server with Zone "a.foo.com".


        If this field is nil, no servers are created.

      • getUpstreamResolvers

        public UpstreamResolvers getUpstreamResolvers()
        DNSSpec is the specification of the desired behavior of the DNS.
      • setUpstreamResolvers

        public void setUpstreamResolvers​(UpstreamResolvers upstreamResolvers)
        DNSSpec is the specification of the desired behavior of the DNS.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)