Class NodeSpec

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class NodeSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    NodeSpec describes the attributes that a node is created with.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NodeSpec.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeSpec()  
      NodeSpec​(NodeConfigSource configSource, java.lang.String externalID, java.lang.String podCIDR, java.util.List<java.lang.String> podCIDRs, java.lang.String providerID, java.util.List<Taint> taints, java.lang.Boolean unschedulable)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NodeSpec.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      NodeConfigSource getConfigSource()  
      java.lang.String getExternalID()
      Deprecated.
      java.lang.String getPodCIDR()
      PodCIDR represents the pod IP range assigned to the node.
      java.util.List<java.lang.String> getPodCIDRs()
      podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node.
      java.lang.String getProviderID()
      ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
      java.util.List<Taint> getTaints()
      If specified, the node's taints.
      java.lang.Boolean getUnschedulable()
      Unschedulable controls node schedulability of new pods.
      int hashCode()  
      void setConfigSource​(NodeConfigSource configSource)  
      void setExternalID​(java.lang.String externalID)
      Deprecated.
      void setPodCIDR​(java.lang.String podCIDR)
      PodCIDR represents the pod IP range assigned to the node.
      void setPodCIDRs​(java.util.List<java.lang.String> podCIDRs)
      podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node.
      void setProviderID​(java.lang.String providerID)
      ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
      void setTaints​(java.util.List<Taint> taints)
      If specified, the node's taints.
      void setUnschedulable​(java.lang.Boolean unschedulable)
      Unschedulable controls node schedulability of new pods.
      NodeSpec.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NodeSpec

        public NodeSpec​(NodeConfigSource configSource,
                        java.lang.String externalID,
                        java.lang.String podCIDR,
                        java.util.List<java.lang.String> podCIDRs,
                        java.lang.String providerID,
                        java.util.List<Taint> taints,
                        java.lang.Boolean unschedulable)
      • NodeSpec

        public NodeSpec()
    • Method Detail

      • getExternalID

        public java.lang.String getExternalID()
        Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
      • getPodCIDR

        public java.lang.String getPodCIDR()
        PodCIDR represents the pod IP range assigned to the node.
      • getPodCIDRs

        public java.util.List<java.lang.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.
      • getProviderID

        public java.lang.String getProviderID()
        ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
      • getTaints

        public java.util.List<Taint> getTaints()
        If specified, the node's taints.
      • getUnschedulable

        public java.lang.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
      • setConfigSource

        public void setConfigSource​(NodeConfigSource configSource)
      • setExternalID

        public void setExternalID​(java.lang.String externalID)
        Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966
      • setPodCIDR

        public void setPodCIDR​(java.lang.String podCIDR)
        PodCIDR represents the pod IP range assigned to the node.
      • setPodCIDRs

        public void setPodCIDRs​(java.util.List<java.lang.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.
      • setProviderID

        public void setProviderID​(java.lang.String providerID)
        ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
      • setTaints

        public void setTaints​(java.util.List<Taint> taints)
        If specified, the node's taints.
      • setUnschedulable

        public void setUnschedulable​(java.lang.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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object