Package org.cdk8s.plus25.k8s
Interface Scheduling
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Scheduling.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.813Z") @Stability(Stable) public interface Scheduling extends software.amazon.jsii.JsiiSerializable
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classScheduling.BuilderA builder forSchedulingstatic classScheduling.Jsii$ProxyAn implementation forScheduling
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static Scheduling.Builderbuilder()default Map<String,String>getNodeSelector()nodeSelector lists labels that must be present on nodes that support this RuntimeClass.default List<Toleration>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.
-
-
-
Method Detail
-
getNodeSelector
@Stability(Stable) @Nullable default 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.
-
getTolerations
@Stability(Stable) @Nullable default List<Toleration> 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.
-
builder
@Stability(Stable) static Scheduling.Builder builder()
- Returns:
- a
Scheduling.BuilderofScheduling
-
-