| Modifier and Type | Method and Description |
|---|---|
Deployment.Builder |
Deployment.Builder.containers(List<? extends ContainerProps> containers)
List of containers belonging to the pod.
|
static Deployment.Builder |
Deployment.Builder.create(software.constructs.Construct scope,
String id) |
Deployment.Builder |
Deployment.Builder.defaultSelector(Boolean defaultSelector)
Automatically allocates a pod selector for this deployment.
|
Deployment.Builder |
Deployment.Builder.metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.
|
Deployment.Builder |
Deployment.Builder.podMetadata(org.cdk8s.ApiObjectMetadata podMetadata)
The pod metadata.
|
Deployment.Builder |
Deployment.Builder.replicas(Number replicas)
Number of desired pods.
|
Deployment.Builder |
Deployment.Builder.restartPolicy(RestartPolicy restartPolicy)
Restart policy for all containers within the pod.
|
Deployment.Builder |
Deployment.Builder.serviceAccount(IServiceAccount serviceAccount)
A service account provides an identity for processes that run in a Pod.
|
Deployment.Builder |
Deployment.Builder.volumes(List<? extends Volume> volumes)
List of volumes that can be mounted by containers belonging to the pod.
|
Copyright © 2021. All rights reserved.