Package org.cdk8s.plus23
Interface WorkloadProps
-
- All Superinterfaces:
AbstractPodProps
,software.amazon.jsii.JsiiSerializable
,ResourceProps
- All Known Subinterfaces:
CronJobProps
,DaemonSetProps
,DeploymentProps
,JobProps
,StatefulSetProps
- All Known Implementing Classes:
CronJobProps.Jsii$Proxy
,DaemonSetProps.Jsii$Proxy
,DeploymentProps.Jsii$Proxy
,JobProps.Jsii$Proxy
,StatefulSetProps.Jsii$Proxy
,WorkloadProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.202Z") @Stability(Stable) public interface WorkloadProps extends software.amazon.jsii.JsiiSerializable, AbstractPodProps
Properties for `Workload`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WorkloadProps.Builder
A builder forWorkloadProps
static class
WorkloadProps.Jsii$Proxy
An implementation forWorkloadProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static WorkloadProps.Builder
builder()
default org.cdk8s.ApiObjectMetadata
getPodMetadata()
The pod metadata of this workload.default Boolean
getSelect()
Automatically allocates a pod label selector for this workload and add it to the pod metadata.default Boolean
getSpread()
Automatically spread pods across hostname and zones.-
Methods inherited from interface org.cdk8s.plus23.AbstractPodProps
getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus23.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getPodMetadata
@Stability(Stable) @Nullable default org.cdk8s.ApiObjectMetadata getPodMetadata()
The pod metadata of this workload.
-
getSelect
@Stability(Stable) @Nullable default Boolean getSelect()
Automatically allocates a pod label selector for this workload and add it to the pod metadata.This ensures this workload manages pods created by its pod template.
Default: true
-
getSpread
@Stability(Stable) @Nullable default Boolean getSpread()
Automatically spread pods across hostname and zones.Default: false
-
builder
@Stability(Stable) static WorkloadProps.Builder builder()
- Returns:
- a
WorkloadProps.Builder
ofWorkloadProps
-
-