Class V1NodeSpec

java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSpec

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1NodeSpec extends Object
NodeSpec describes the attributes that a node is created with.
  • Field Details

  • Constructor Details

    • V1NodeSpec

      public V1NodeSpec()
  • Method Details

    • configSource

      public V1NodeSpec configSource(V1NodeConfigSource configSource)
    • getConfigSource

      @Nullable public V1NodeConfigSource getConfigSource()
      Get configSource
      Returns:
      configSource
    • setConfigSource

      public void setConfigSource(V1NodeConfigSource configSource)
    • externalID

      public V1NodeSpec externalID(String externalID)
    • getExternalID

      @Nullable public String getExternalID()
      Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
      Returns:
      externalID
    • setExternalID

      public void setExternalID(String externalID)
    • podCIDR

      public V1NodeSpec podCIDR(String podCIDR)
    • getPodCIDR

      @Nullable public String getPodCIDR()
      PodCIDR represents the pod IP range assigned to the node.
      Returns:
      podCIDR
    • setPodCIDR

      public void setPodCIDR(String podCIDR)
    • podCIDRs

      public V1NodeSpec podCIDRs(List<String> podCIDRs)
    • addPodCIDRsItem

      public V1NodeSpec addPodCIDRsItem(String podCIDRsItem)
    • getPodCIDRs

      @Nullable 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.
      Returns:
      podCIDRs
    • setPodCIDRs

      public void setPodCIDRs(List<String> podCIDRs)
    • providerID

      public V1NodeSpec providerID(String providerID)
    • getProviderID

      @Nullable public String getProviderID()
      ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
      Returns:
      providerID
    • setProviderID

      public void setProviderID(String providerID)
    • taints

      public V1NodeSpec taints(List<V1Taint> taints)
    • addTaintsItem

      public V1NodeSpec addTaintsItem(V1Taint taintsItem)
    • getTaints

      @Nullable public List<V1Taint> getTaints()
      If specified, the node's taints.
      Returns:
      taints
    • setTaints

      public void setTaints(List<V1Taint> taints)
    • unschedulable

      public V1NodeSpec unschedulable(Boolean unschedulable)
    • getUnschedulable

      @Nullable 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
      Returns:
      unschedulable
    • setUnschedulable

      public void setUnschedulable(Boolean unschedulable)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object