Class 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 Detail

      • DNSNodePlacement

        public DNSNodePlacement()
        No args constructor for use in serialization
      • DNSNodePlacement

        public DNSNodePlacement​(Map<String,​String> nodeSelector,
                                List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
    • 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/

      • getAdditionalProperties

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

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

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