| Modifier and Type | Method and Description |
|---|---|
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.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.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.
|
Copyright © 2021. All rights reserved.