Package org.cdk8s.plus24.k8s
Class NodeSpec.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.NodeSpec.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSpec
build()
Builds the configured instance.NodeSpec.Builder
configSource(NodeConfigSource configSource)
Sets the value ofNodeSpec.getConfigSource()
NodeSpec.Builder
externalId(String externalId)
Sets the value ofNodeSpec.getExternalId()
NodeSpec.Builder
podCidr(String podCidr)
Sets the value ofNodeSpec.getPodCidr()
NodeSpec.Builder
podCidRs(List<String> podCidRs)
Sets the value ofNodeSpec.getPodCidRs()
NodeSpec.Builder
providerId(String providerId)
Sets the value ofNodeSpec.getProviderId()
NodeSpec.Builder
taints(List<? extends Taint> taints)
Sets the value ofNodeSpec.getTaints()
NodeSpec.Builder
unschedulable(Boolean unschedulable)
Sets the value ofNodeSpec.getUnschedulable()
-
-
-
Method Detail
-
configSource
@Stability(Stable) public NodeSpec.Builder configSource(NodeConfigSource configSource)
Sets the value ofNodeSpec.getConfigSource()
- Parameters:
configSource
- Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26.- Returns:
this
-
externalId
@Stability(Stable) public NodeSpec.Builder externalId(String externalId)
Sets the value ofNodeSpec.getExternalId()
- Parameters:
externalId
- Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966- Returns:
this
-
podCidr
@Stability(Stable) public NodeSpec.Builder podCidr(String podCidr)
Sets the value ofNodeSpec.getPodCidr()
- Parameters:
podCidr
- PodCIDR represents the pod IP range assigned to the node.- Returns:
this
-
podCidRs
@Stability(Stable) public NodeSpec.Builder podCidRs(List<String> podCidRs)
Sets the value ofNodeSpec.getPodCidRs()
- Parameters:
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.- Returns:
this
-
providerId
@Stability(Stable) public NodeSpec.Builder providerId(String providerId)
Sets the value ofNodeSpec.getProviderId()
- Parameters:
providerId
- ID of the node assigned by the cloud provider in the format::// . - Returns:
this
-
taints
@Stability(Stable) public NodeSpec.Builder taints(List<? extends Taint> taints)
Sets the value ofNodeSpec.getTaints()
- Parameters:
taints
- If specified, the node's taints.- Returns:
this
-
unschedulable
@Stability(Stable) public NodeSpec.Builder unschedulable(Boolean unschedulable)
Sets the value ofNodeSpec.getUnschedulable()
- Parameters:
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- Returns:
this
-
build
@Stability(Stable) public NodeSpec build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NodeSpec>
- Returns:
- a new instance of
NodeSpec
- Throws:
NullPointerException
- if any required attribute was not provided
-
-