@Stability(value=Stable) @Internal public static final class StatefulSetProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StatefulSetProps
StatefulSetPropssoftware.amazon.jsii.JsiiObject.InitializationModeStatefulSetProps.Builder, StatefulSetProps.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(Service service,
Boolean defaultSelector,
PodManagementPolicy podManagementPolicy,
Number replicas,
org.cdk8s.ApiObjectMetadata metadata,
org.cdk8s.ApiObjectMetadata podMetadata,
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
StatefulSetProps.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.
|
Boolean |
getDefaultSelector()
Automatically allocates a pod selector for this statefulset.
|
org.cdk8s.ApiObjectMetadata |
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.
|
PodManagementPolicy |
getPodManagementPolicy()
Pod management policy to use for this statefulset.
|
org.cdk8s.ApiObjectMetadata |
getPodMetadata()
The pod metadata.
|
Number |
getReplicas()
Number of desired pods.
|
RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
Service |
getService()
Service to associate with the statefulset.
|
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(Service service, Boolean defaultSelector, PodManagementPolicy podManagementPolicy, Number replicas, org.cdk8s.ApiObjectMetadata metadata, org.cdk8s.ApiObjectMetadata podMetadata, List<? extends ContainerProps> containers, RestartPolicy restartPolicy, IServiceAccount serviceAccount, List<? extends Volume> volumes)
StatefulSetProps.Builder.public final Service getService()
StatefulSetPropsgetService in interface StatefulSetPropspublic final Boolean getDefaultSelector()
StatefulSetProps
If this is set to false you must define your selector through
statefulset.podMetadata.addLabel() and statefulset.selectByLabel().
Default: true
getDefaultSelector in interface StatefulSetPropspublic final PodManagementPolicy getPodManagementPolicy()
StatefulSetPropsDefault: PodManagementPolicy.ORDERED_READY
getPodManagementPolicy in interface StatefulSetPropspublic final Number getReplicas()
StatefulSetPropsDefault: 1
getReplicas in interface StatefulSetPropspublic final org.cdk8s.ApiObjectMetadata getMetadata()
ResourcePropsgetMetadata in interface ResourcePropspublic final org.cdk8s.ApiObjectMetadata getPodMetadata()
PodTemplatePropsgetPodMetadata in interface PodTemplatePropspublic 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.