Package org.cdk8s.plus24
Class WorkloadScheduling
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.PodScheduling
-
- org.cdk8s.plus24.WorkloadScheduling
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T02:54:19.337Z") @Stability(Stable) public class WorkloadScheduling extends PodScheduling
Controls the pod scheduling strategy of this workload.It offers some additional API's on top of the core pod scheduling.
-
-
Constructor Summary
Constructors Modifier Constructor Description WorkloadScheduling(AbstractPod instance)protectedWorkloadScheduling(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedWorkloadScheduling(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidspread()Spread the pods in this workload by the topology key.voidspread(WorkloadSchedulingSpreadOptions options)Spread the pods in this workload by the topology key.-
Methods inherited from class org.cdk8s.plus24.PodScheduling
assign, attract, attract, colocate, colocate, getInstance, separate, separate, tolerate
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
WorkloadScheduling
protected WorkloadScheduling(software.amazon.jsii.JsiiObjectRef objRef)
-
WorkloadScheduling
protected WorkloadScheduling(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
WorkloadScheduling
@Stability(Stable) public WorkloadScheduling(@NotNull AbstractPod instance)- Parameters:
instance- This parameter is required.
-
-
Method Detail
-
spread
@Stability(Stable) public void spread(@Nullable WorkloadSchedulingSpreadOptions options)Spread the pods in this workload by the topology key.A spread is a separation of the pod from itself and is used to balance out pod replicas across a given topology.
- Parameters:
options-
-
spread
@Stability(Stable) public void spread()
Spread the pods in this workload by the topology key.A spread is a separation of the pod from itself and is used to balance out pod replicas across a given topology.
-
-