Class DNSNodePlacement
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.DNSNodePlacement
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DNSNodePlacementBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DNSNodePlacement extends Object implements io.fabric8.kubernetes.api.builder.Editable<DNSNodePlacementBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DNSNodePlacement describes the node scheduling configuration for DNS pods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DNSNodePlacement()No args constructor for use in serializationDNSNodePlacement(Map<String,String> nodeSelector, List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DNSNodePlacementBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,String>getNodeSelector()nodeSelector is the node selector applied to DNS pods.List<io.fabric8.kubernetes.api.model.Toleration>getTolerations()tolerations is a list of tolerations applied to DNS pods.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNodeSelector(Map<String,String> nodeSelector)nodeSelector is the node selector applied to DNS pods.voidsetTolerations(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)tolerations is a list of tolerations applied to DNS pods.DNSNodePlacementBuildertoBuilder()
-
-
-
Method Detail
-
getNodeSelector
public Map<String,String> getNodeSelector()
nodeSelector is the node selector applied to DNS pods.If empty, the default is used, which is currently the following:
kubernetes.io/os: linux
This default is subject to change.
If set, the specified selector is used and replaces the default.
-
setNodeSelector
public void setNodeSelector(Map<String,String> nodeSelector)
nodeSelector is the node selector applied to DNS pods.If empty, the default is used, which is currently the following:
kubernetes.io/os: linux
This default is subject to change.
If set, the specified selector is used and replaces the default.
-
getTolerations
public List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
tolerations is a list of tolerations applied to DNS pods.If empty, the DNS operator sets a toleration for the "node-role.kubernetes.io/master" taint. This default is subject to change. Specifying tolerations without including a toleration for the "node-role.kubernetes.io/master" taint may be risky as it could lead to an outage if all worker nodes become unavailable.
Note that the daemon controller adds some tolerations as well. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
-
setTolerations
public void setTolerations(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
tolerations is a list of tolerations applied to DNS pods.If empty, the DNS operator sets a toleration for the "node-role.kubernetes.io/master" taint. This default is subject to change. Specifying tolerations without including a toleration for the "node-role.kubernetes.io/master" taint may be risky as it could lead to an outage if all worker nodes become unavailable.
Note that the daemon controller adds some tolerations as well. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
-
edit
public DNSNodePlacementBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DNSNodePlacementBuilder>
-
toBuilder
public DNSNodePlacementBuilder toBuilder()
-
-