@Generated(value="jsii-pacmak/1.34.0 (build 9b72778)", date="2021-09-24T22:49:58.424Z") @Stability(value=Stable) public interface PodSpecProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
PodSpecProps.Builder
A builder for
PodSpecProps |
static class |
PodSpecProps.Jsii$Proxy
An implementation for
PodSpecProps |
| Modifier and Type | Method and Description |
|---|---|
static PodSpecProps.Builder |
builder() |
default List<ContainerProps> |
getContainers()
List of containers belonging to the pod.
|
default RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
default IServiceAccount |
getServiceAccount()
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.
|
@Stability(value=Stable) @Nullable default List<ContainerProps> getContainers()
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.
@Stability(value=Stable) @Nullable default RestartPolicy getRestartPolicy()
Default: RestartPolicy.ALWAYS
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy@Stability(value=Stable) @Nullable default IServiceAccount getServiceAccount()
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.
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/@Stability(value=Stable) @Nullable default List<Volume> getVolumes()
You can also add volumes later using podSpec.addVolume()
Default: - No volumes.
https://kubernetes.io/docs/concepts/storage/volumes@Stability(value=Stable) static PodSpecProps.Builder builder()
PodSpecProps.Builder of PodSpecPropsCopyright © 2021. All rights reserved.