Class NodeSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCgroupMode()cgroupMode determines the cgroups version on the nodeStringgetMinimumKubeletVersion()minimumKubeletVersion is the lowest version of a kubelet that can join the cluster.StringgetWorkerLatencyProfile()workerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the clustervoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCgroupMode(String cgroupMode)cgroupMode determines the cgroups version on the nodevoidsetMinimumKubeletVersion(String minimumKubeletVersion)minimumKubeletVersion is the lowest version of a kubelet that can join the cluster.voidsetWorkerLatencyProfile(String workerLatencyProfile)workerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the clusterNodeSpecBuildertoBuilder()
-
-
-
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
-
edit
public NodeSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>
-
toBuilder
public NodeSpecBuilder toBuilder()
-
-