Interface PodSpecProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DeploymentProps,JobProps,PodProps,PodTemplateProps,StatefulSetProps
- All Known Implementing Classes:
DeploymentProps.Jsii$Proxy,JobProps.Jsii$Proxy,PodProps.Jsii$Proxy,PodSpecProps.Jsii$Proxy,PodTemplateProps.Jsii$Proxy,StatefulSetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.55.1 (build 07d2d90)", date="2022-04-02T02:38:57.566Z") @Stability(Stable) public interface PodSpecProps extends software.amazon.jsii.JsiiSerializable
Properties of a `PodSpec`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPodSpecProps.BuilderA builder forPodSpecPropsstatic classPodSpecProps.Jsii$ProxyAn implementation forPodSpecProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PodSpecProps.Builderbuilder()default List<ContainerProps>getContainers()List of containers belonging to the pod.default RestartPolicygetRestartPolicy()Restart policy for all containers within the pod.default IServiceAccountgetServiceAccount()A service account provides an identity for processes that run in a Pod.default List<Volume>getVolumes()List of volumes that can be mounted by containers belonging to the pod.
-
-
-
Method Detail
-
getContainers
@Stability(Stable) @Nullable default List<ContainerProps> getContainers()
List of containers belonging to the pod.Containers cannot currently be added or removed. There must be at least one container in a Pod.
You can add additionnal containers using
podSpec.addContainer()Default: - No containers. Note that a pod spec must include at least one container.
-
getRestartPolicy
@Stability(Stable) @Nullable default RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.Default: RestartPolicy.ALWAYS
-
getServiceAccount
@Stability(Stable) @Nullable default IServiceAccount getServiceAccount()
A service account provides an identity for processes that run in a Pod.When you (a human) access the cluster (for example, using kubectl), you are authenticated by the apiserver as a particular User Account (currently this is usually admin, unless your cluster administrator has customized your cluster). Processes in containers inside pods can also contact the apiserver. When they do, they are authenticated as a particular Service Account (for example, default).
Default: - No service account.
-
getVolumes
@Stability(Stable) @Nullable default List<Volume> getVolumes()
List of volumes that can be mounted by containers belonging to the pod.You can also add volumes later using
podSpec.addVolume()Default: - No volumes.
-
builder
@Stability(Stable) static PodSpecProps.Builder builder()
- Returns:
- a
PodSpecProps.BuilderofPodSpecProps
-
-