Class NodeSpec.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<NodeSpec>
    Enclosing interface:
    NodeSpec

    @Stability(Stable)
    public static final class NodeSpec.Builder
    extends Object
    implements software.amazon.jsii.Builder<NodeSpec>
    A builder for NodeSpec
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • configSource

        @Stability(Stable)
        public NodeSpec.Builder configSource​(NodeConfigSource configSource)
        Sets the value of NodeSpec.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 of NodeSpec.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 of NodeSpec.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 of NodeSpec.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 of NodeSpec.getProviderId()
        Parameters:
        providerId - ID of the node assigned by the cloud provider in the format: ://.
        Returns:
        this
      • unschedulable

        @Stability(Stable)
        public NodeSpec.Builder unschedulable​(Boolean unschedulable)
        Sets the value of NodeSpec.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 interface software.amazon.jsii.Builder<NodeSpec>
        Returns:
        a new instance of NodeSpec
        Throws:
        NullPointerException - if any required attribute was not provided