Class UpstreamResolvers
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.UpstreamResolvers
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<UpstreamResolversBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class UpstreamResolvers extends Object implements io.fabric8.kubernetes.api.builder.Editable<UpstreamResolversBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
UpstreamResolvers defines a schema for configuring the CoreDNS forward plugin in the specific case of the default (".") server. It defers from ForwardPlugin in the default values it accepts: * At least one upstream should be specified. * the default policy is Sequential- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpstreamResolvers()No args constructor for use in serializationUpstreamResolvers(String policy, String protocolStrategy, DNSTransportConfig transportConfig, List<Upstream> upstreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpstreamResolversBuilderedit()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()UpstreamResolvers defines a schema for configuring the CoreDNS forward plugin in the specific case of the default (".") server.List<Upstream>getUpstreams()upstreams is a list of resolvers to forward name queries for the "." domain.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)UpstreamResolvers defines a schema for configuring the CoreDNS forward plugin in the specific case of the default (".") server.voidsetUpstreams(List<Upstream> upstreams)upstreams is a list of resolvers to forward name queries for the "." domain.UpstreamResolversBuildertoBuilder()
-
-
-
Constructor Detail
-
UpstreamResolvers
public UpstreamResolvers()
No args constructor for use in serialization
-
UpstreamResolvers
public UpstreamResolvers(String policy, String protocolStrategy, DNSTransportConfig transportConfig, List<Upstream> 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 "Sequential"
-
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 "Sequential"
-
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()
UpstreamResolvers defines a schema for configuring the CoreDNS forward plugin in the specific case of the default (".") server. It defers from ForwardPlugin in the default values it accepts: * At least one upstream should be specified. * the default policy is Sequential
-
setTransportConfig
public void setTransportConfig(DNSTransportConfig transportConfig)
UpstreamResolvers defines a schema for configuring the CoreDNS forward plugin in the specific case of the default (".") server. It defers from ForwardPlugin in the default values it accepts: * At least one upstream should be specified. * the default policy is Sequential
-
getUpstreams
public List<Upstream> getUpstreams()
upstreams is a list of resolvers to forward name queries for the "." domain. 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.A maximum of 15 upstreams is allowed per ForwardPlugin. If no Upstreams are specified, /etc/resolv.conf is used by default
-
setUpstreams
public void setUpstreams(List<Upstream> upstreams)
upstreams is a list of resolvers to forward name queries for the "." domain. 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.A maximum of 15 upstreams is allowed per ForwardPlugin. If no Upstreams are specified, /etc/resolv.conf is used by default
-
edit
public UpstreamResolversBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<UpstreamResolversBuilder>
-
toBuilder
public UpstreamResolversBuilder toBuilder()
-
-