Class V1NodeSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") 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(@Nullable V1NodeConfigSource configSource)
    • getConfigSource

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

      public void setConfigSource(@Nullable V1NodeConfigSource configSource)
    • externalID

      public V1NodeSpec externalID(@Nullable 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(@Nullable String externalID)
    • podCIDR

      public V1NodeSpec podCIDR(@Nullable String podCIDR)
    • getPodCIDR

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

      public void setPodCIDR(@Nullable String podCIDR)
    • podCIDRs

      public V1NodeSpec podCIDRs(@Nullable 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(@Nullable List<String> podCIDRs)
    • providerID

      public V1NodeSpec providerID(@Nullable 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(@Nullable String providerID)
    • taints

      public V1NodeSpec taints(@Nullable 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(@Nullable List<V1Taint> taints)
    • unschedulable

      public V1NodeSpec unschedulable(@Nullable 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(@Nullable 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1NodeSpec
    • fromJson

      public static V1NodeSpec fromJson(String jsonString) throws IOException
      Create an instance of V1NodeSpec given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1NodeSpec
      Throws:
      IOException - if the JSON string is invalid with respect to V1NodeSpec
    • toJson

      public String toJson()
      Convert an instance of V1NodeSpec to an JSON string
      Returns:
      JSON string