Pod.Builder |
Pod.Builder.containers(List<? extends ContainerProps> containers) |
List of containers belonging to the pod.
|
static Pod.Builder |
Pod.Builder.create(software.constructs.Construct scope,
String id) |
|
Pod.Builder |
Pod.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.
|
Pod.Builder |
Pod.Builder.initContainers(List<? extends ContainerProps> initContainers) |
List of initialization containers belonging to the pod.
|
Pod.Builder |
Pod.Builder.metadata(org.cdk8s.ApiObjectMetadata metadata) |
Metadata that all persisted resources must have, which includes all objects users must create.
|
Pod.Builder |
Pod.Builder.restartPolicy(RestartPolicy restartPolicy) |
Restart policy for all containers within the pod.
|
Pod.Builder |
Pod.Builder.securityContext(PodSecurityContextProps securityContext) |
SecurityContext holds pod-level security attributes and common container settings.
|
Pod.Builder |
Pod.Builder.serviceAccount(IServiceAccount serviceAccount) |
A service account provides an identity for processes that run in a Pod.
|
Pod.Builder |
Pod.Builder.volumes(List<? extends Volume> volumes) |
List of volumes that can be mounted by containers belonging to the pod.
|