@Stability(value=Stable) @Internal public static final class PodProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodProps
PodPropssoftware.amazon.jsii.JsiiObject.InitializationModePodProps.Builder, PodProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(org.cdk8s.ApiObjectMetadata metadata,
List<? extends ContainerProps> containers,
RestartPolicy restartPolicy,
IServiceAccount serviceAccount,
List<? extends Volume> volumes)
Constructor that initializes the object based on literal property values passed by the
PodProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<ContainerProps> |
getContainers()
List of containers belonging to the pod.
|
org.cdk8s.ApiObjectMetadata |
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.
|
RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
A service account provides an identity for processes that run in a Pod.
|
List<Volume> |
getVolumes()
List of volumes that can be mounted by containers belonging to the pod.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(org.cdk8s.ApiObjectMetadata metadata,
List<? extends ContainerProps> containers,
RestartPolicy restartPolicy,
IServiceAccount serviceAccount,
List<? extends Volume> volumes)
PodProps.Builder.public final org.cdk8s.ApiObjectMetadata getMetadata()
ResourcePropsgetMetadata in interface ResourcePropspublic final List<ContainerProps> getContainers()
PodSpecPropsContainers 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.
getContainers in interface PodSpecPropspublic final RestartPolicy getRestartPolicy()
PodSpecPropsDefault: RestartPolicy.ALWAYS
getRestartPolicy in interface PodSpecPropshttps://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policypublic final IServiceAccount getServiceAccount()
PodSpecPropsWhen 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.
getServiceAccount in interface PodSpecPropshttps://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/public final List<Volume> getVolumes()
PodSpecProps
You can also add volumes later using podSpec.addVolume()
Default: - No volumes.
getVolumes in interface PodSpecPropshttps://kubernetes.io/docs/concepts/storage/volumes@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.