Class V1Scheduling

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T21:37:40.170033Z[Etc/UTC]") public class V1Scheduling extends Object
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
  • Field Details

  • Constructor Details

    • V1Scheduling

      public V1Scheduling()
  • Method Details

    • nodeSelector

      public V1Scheduling nodeSelector(Map<String,String> nodeSelector)
    • putNodeSelectorItem

      public V1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem)
    • getNodeSelector

      @Nullable public Map<String,String> getNodeSelector()
      nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
      Returns:
      nodeSelector
    • setNodeSelector

      public void setNodeSelector(Map<String,String> nodeSelector)
    • tolerations

      public V1Scheduling tolerations(List<V1Toleration> tolerations)
    • addTolerationsItem

      public V1Scheduling addTolerationsItem(V1Toleration tolerationsItem)
    • getTolerations

      @Nullable public List<V1Toleration> getTolerations()
      tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
      Returns:
      tolerations
    • setTolerations

      public void setTolerations(List<V1Toleration> tolerations)
    • 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