Class ForwardPlugin
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.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 Summary
Constructors Constructor Description ForwardPlugin()No args constructor for use in serializationForwardPlugin(String policy, String protocolStrategy, DNSTransportConfig transportConfig, List<String> upstreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardPluginBuilderedit()Map<String,Object>getAdditionalProperties()StringgetPolicy()policy is used to determine the order in which upstream servers are selected for querying.StringgetProtocolStrategy()protocolStrategy specifies the protocol to use for upstream DNS requests.DNSTransportConfiggetTransportConfig()ForwardPlugin defines a schema for configuring the CoreDNS forward plugin.List<String>getUpstreams()upstreams is a list of resolvers to forward name queries for subdomains of Zones.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPolicy(String policy)policy is used to determine the order in which upstream servers are selected for querying.voidsetProtocolStrategy(String protocolStrategy)protocolStrategy specifies the protocol to use for upstream DNS requests.voidsetTransportConfig(DNSTransportConfig transportConfig)ForwardPlugin defines a schema for configuring the CoreDNS forward plugin.voidsetUpstreams(List<String> upstreams)upstreams is a list of resolvers to forward name queries for subdomains of Zones.ForwardPluginBuildertoBuilder()
-
-
-
Constructor Detail
-
ForwardPlugin
public ForwardPlugin()
No args constructor for use in serialization
-
ForwardPlugin
public ForwardPlugin(String policy, String protocolStrategy, DNSTransportConfig transportConfig, List<String> upstreams)
-
-
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.
-
edit
public ForwardPluginBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ForwardPluginBuilder>
-
toBuilder
public ForwardPluginBuilder toBuilder()
-
-