Class NodeSpec

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class NodeSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    See Also:
    Serialized Form
    • Constructor Detail

      • NodeSpec

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

        public NodeSpec​(String cgroupMode,
                        String minimumKubeletVersion,
                        String workerLatencyProfile)
    • Method Detail

      • getCgroupMode

        public String getCgroupMode()
        cgroupMode determines the cgroups version on the node
      • setCgroupMode

        public void setCgroupMode​(String cgroupMode)
        cgroupMode determines the cgroups version on the node
      • getMinimumKubeletVersion

        public String getMinimumKubeletVersion()
        minimumKubeletVersion is the lowest version of a kubelet that can join the cluster. Specifically, the apiserver will deny most authorization requests of kubelets that are older than the specified version, only allowing the kubelet to get and update its node object, and perform subjectaccessreviews. This means any kubelet that attempts to join the cluster will not be able to run any assigned workloads, and will eventually be marked as not ready. Its max length is 8, so maximum version allowed is either "9.999.99" or "99.99.99". Since the kubelet reports the version of the kubernetes release, not Openshift, this field references the underlying kubernetes version this version of Openshift is based off of. In other words: if an admin wishes to ensure no nodes run an older version than Openshift 4.17, then they should set the minimumKubeletVersion to 1.30.0. When comparing versions, the kubelet's version is stripped of any contents outside of major.minor.patch version. Thus, a kubelet with version "1.0.0-ec.0" will be compatible with minimumKubeletVersion "1.0.0" or earlier.
      • setMinimumKubeletVersion

        public void setMinimumKubeletVersion​(String minimumKubeletVersion)
        minimumKubeletVersion is the lowest version of a kubelet that can join the cluster. Specifically, the apiserver will deny most authorization requests of kubelets that are older than the specified version, only allowing the kubelet to get and update its node object, and perform subjectaccessreviews. This means any kubelet that attempts to join the cluster will not be able to run any assigned workloads, and will eventually be marked as not ready. Its max length is 8, so maximum version allowed is either "9.999.99" or "99.99.99". Since the kubelet reports the version of the kubernetes release, not Openshift, this field references the underlying kubernetes version this version of Openshift is based off of. In other words: if an admin wishes to ensure no nodes run an older version than Openshift 4.17, then they should set the minimumKubeletVersion to 1.30.0. When comparing versions, the kubelet's version is stripped of any contents outside of major.minor.patch version. Thus, a kubelet with version "1.0.0-ec.0" will be compatible with minimumKubeletVersion "1.0.0" or earlier.
      • getWorkerLatencyProfile

        public String getWorkerLatencyProfile()
        workerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster
      • setWorkerLatencyProfile

        public void setWorkerLatencyProfile​(String workerLatencyProfile)
        workerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster
      • getAdditionalProperties

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

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

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