Class ForwardPlugin

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class ForwardPlugin
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<ForwardPluginBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    ForwardPlugin defines a schema for configuring the CoreDNS forward plugin.
    See Also:
    Serialized Form
    • Constructor Detail

      • ForwardPlugin

        public ForwardPlugin()
        No args constructor for use in serialization
    • Method Detail

      • getPolicy

        public String getPolicy()
        policy is used to determine the order in which upstream servers are selected for querying. Any one of the following values may be specified:


        * "Random" picks a random upstream server for each query. * "RoundRobin" picks upstream servers in a round-robin order, moving to the next server for each new query. * "Sequential" tries querying upstream servers in a sequential order until one responds, starting with the first server for each new query.


        The default value is "Random"

      • setPolicy

        public void setPolicy​(String policy)
        policy is used to determine the order in which upstream servers are selected for querying. Any one of the following values may be specified:


        * "Random" picks a random upstream server for each query. * "RoundRobin" picks upstream servers in a round-robin order, moving to the next server for each new query. * "Sequential" tries querying upstream servers in a sequential order until one responds, starting with the first server for each new query.


        The default value is "Random"

      • getProtocolStrategy

        public String getProtocolStrategy()
        protocolStrategy specifies the protocol to use for upstream DNS requests. Valid values for protocolStrategy are "TCP" and omitted. When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time. The current default is to use the protocol of the original client request. "TCP" specifies that the platform should use TCP for all upstream DNS requests, even if the client request uses UDP. "TCP" is useful for UDP-specific issues such as those created by non-compliant upstream resolvers, but may consume more bandwidth or increase DNS response time. Note that protocolStrategy only affects the protocol of DNS requests that CoreDNS makes to upstream resolvers. It does not affect the protocol of DNS requests between clients and CoreDNS.
      • setProtocolStrategy

        public void setProtocolStrategy​(String protocolStrategy)
        protocolStrategy specifies the protocol to use for upstream DNS requests. Valid values for protocolStrategy are "TCP" and omitted. When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time. The current default is to use the protocol of the original client request. "TCP" specifies that the platform should use TCP for all upstream DNS requests, even if the client request uses UDP. "TCP" is useful for UDP-specific issues such as those created by non-compliant upstream resolvers, but may consume more bandwidth or increase DNS response time. Note that protocolStrategy only affects the protocol of DNS requests that CoreDNS makes to upstream resolvers. It does not affect the protocol of DNS requests between clients and CoreDNS.
      • getTransportConfig

        public DNSTransportConfig getTransportConfig()
        ForwardPlugin defines a schema for configuring the CoreDNS forward plugin.
      • setTransportConfig

        public void setTransportConfig​(DNSTransportConfig transportConfig)
        ForwardPlugin defines a schema for configuring the CoreDNS forward plugin.
      • getUpstreams

        public List<String> getUpstreams()
        upstreams is a list of resolvers to forward name queries for subdomains of Zones. Each instance of CoreDNS performs health checking of Upstreams. When a healthy upstream returns an error during the exchange, another resolver is tried from Upstreams. The Upstreams are selected in the order specified in Policy. Each upstream is represented by an IP address or IP:port if the upstream listens on a port other than 53.


        A maximum of 15 upstreams is allowed per ForwardPlugin.

      • setUpstreams

        public void setUpstreams​(List<String> upstreams)
        upstreams is a list of resolvers to forward name queries for subdomains of Zones. Each instance of CoreDNS performs health checking of Upstreams. When a healthy upstream returns an error during the exchange, another resolver is tried from Upstreams. The Upstreams are selected in the order specified in Policy. Each upstream is represented by an IP address or IP:port if the upstream listens on a port other than 53.


        A maximum of 15 upstreams is allowed per ForwardPlugin.

      • getAdditionalProperties

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

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

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