Package io.fabric8.kubernetes.api.model
Class NodeSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.NodeSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>, KubernetesResource
NodeSpec describes the attributes that a node is created with.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSpecBuilderedit()Map<String,Object>getAdditionalProperties()NodeConfigSourcegetConfigSource()NodeSpec describes the attributes that a node is created with.StringgetExternalID()Deprecated.StringgetPodCIDR()PodCIDR represents the pod IP range assigned to the node.List<String>getPodCIDRs()podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node.StringgetProviderID()ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>List<Taint>getTaints()If specified, the node's taints.BooleangetUnschedulable()Unschedulable controls node schedulability of new pods.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConfigSource(NodeConfigSource configSource)NodeSpec describes the attributes that a node is created with.voidsetExternalID(String externalID)Deprecated.voidsetPodCIDR(String podCIDR)PodCIDR represents the pod IP range assigned to the node.voidsetPodCIDRs(List<String> podCIDRs)podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node.voidsetProviderID(String providerID)ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>voidsetTaints(List<Taint> taints)If specified, the node's taints.voidsetUnschedulable(Boolean unschedulable)Unschedulable controls node schedulability of new pods.NodeSpecBuildertoBuilder()
-
-
-
Method Detail
-
getConfigSource
public NodeConfigSource getConfigSource()
NodeSpec describes the attributes that a node is created with.
-
setConfigSource
public void setConfigSource(NodeConfigSource configSource)
NodeSpec describes the attributes that a node is created with.
-
getExternalID
public String getExternalID()
Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
-
setExternalID
public void setExternalID(String externalID)
Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
-
getPodCIDR
public String getPodCIDR()
PodCIDR represents the pod IP range assigned to the node.
-
setPodCIDR
public void setPodCIDR(String podCIDR)
PodCIDR represents the pod IP range assigned to the node.
-
getPodCIDRs
public List<String> getPodCIDRs()
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.
-
setPodCIDRs
public void setPodCIDRs(List<String> podCIDRs)
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.
-
getProviderID
public String getProviderID()
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
-
setProviderID
public void setProviderID(String providerID)
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
-
getUnschedulable
public Boolean getUnschedulable()
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
-
setUnschedulable
public void setUnschedulable(Boolean unschedulable)
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
-
edit
public NodeSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>
-
toBuilder
public NodeSpecBuilder toBuilder()
-
-