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 NodeSpecBuilder
edit()
Map<String,Object>
getAdditionalProperties()
NodeConfigSource
getConfigSource()
NodeSpec describes the attributes that a node is created with.String
getExternalID()
Deprecated.String
getPodCIDR()
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.String
getProviderID()
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>List<Taint>
getTaints()
If specified, the node's taints.Boolean
getUnschedulable()
Unschedulable controls node schedulability of new pods.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setConfigSource(NodeConfigSource configSource)
NodeSpec describes the attributes that a node is created with.void
setExternalID(String externalID)
Deprecated.void
setPodCIDR(String podCIDR)
PodCIDR represents the pod IP range assigned to the node.void
setPodCIDRs(List<String> podCIDRs)
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node.void
setProviderID(String providerID)
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>void
setTaints(List<Taint> taints)
If specified, the node's taints.void
setUnschedulable(Boolean unschedulable)
Unschedulable controls node schedulability of new pods.NodeSpecBuilder
toBuilder()
-
-
-
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:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<NodeSpecBuilder>
-
toBuilder
public NodeSpecBuilder toBuilder()
-
-