@Stability(value=Stable) @Internal public static final class PodSpecProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodSpecProps
PodSpecPropssoftware.amazon.jsii.JsiiObject.InitializationModePodSpecProps.Builder, PodSpecProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(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
PodSpecProps.Builder. |
| 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.
|
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, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(List<? extends ContainerProps> containers, RestartPolicy restartPolicy, IServiceAccount serviceAccount, List<? extends Volume> volumes)
PodSpecProps.Builder.public 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.