PodTemplate.Builder |
PodTemplate.Builder.containers(List<? extends ContainerProps> containers) |
List of containers belonging to the pod.
|
static PodTemplate.Builder |
PodTemplate.Builder.create() |
|
PodTemplate.Builder |
PodTemplate.Builder.hostAliases(List<? extends HostAlias> hostAliases) |
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
|
PodTemplate.Builder |
PodTemplate.Builder.initContainers(List<? extends ContainerProps> initContainers) |
List of initialization containers belonging to the pod.
|
PodTemplate.Builder |
PodTemplate.Builder.podMetadata(org.cdk8s.ApiObjectMetadata podMetadata) |
The pod metadata.
|
PodTemplate.Builder |
PodTemplate.Builder.restartPolicy(RestartPolicy restartPolicy) |
Restart policy for all containers within the pod.
|
PodTemplate.Builder |
PodTemplate.Builder.securityContext(PodSecurityContextProps securityContext) |
SecurityContext holds pod-level security attributes and common container settings.
|
PodTemplate.Builder |
PodTemplate.Builder.serviceAccount(IServiceAccount serviceAccount) |
A service account provides an identity for processes that run in a Pod.
|
PodTemplate.Builder |
PodTemplate.Builder.volumes(List<? extends Volume> volumes) |
List of volumes that can be mounted by containers belonging to the pod.
|