Class StatefulSetProps.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getStrategy

        public final StatefulSetUpdateStrategy getStrategy()
        Description copied from interface: StatefulSetProps
        Indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.

        Default: - RollingUpdate with partition set to 0

        Specified by:
        getStrategy in interface StatefulSetProps
      • getPodMetadata

        public final org.cdk8s.ApiObjectMetadata getPodMetadata()
        Description copied from interface: WorkloadProps
        The pod metadata of this workload.
        Specified by:
        getPodMetadata in interface WorkloadProps
      • getSelect

        public final Boolean getSelect()
        Description copied from interface: WorkloadProps
        Automatically allocates a pod label selector for this workload and add it to the pod metadata.

        This ensures this workload manages pods created by its pod template.

        Default: true

        Specified by:
        getSelect in interface WorkloadProps
      • getContainers

        public final List<ContainerProps> getContainers()
        Description copied from interface: AbstractPodProps
        List of containers belonging to the pod.

        Containers 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.

        Specified by:
        getContainers in interface AbstractPodProps
      • getInitContainers

        public final List<ContainerProps> getInitContainers()
        Description copied from interface: AbstractPodProps
        List of initialization containers belonging to the pod.

        Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion.

        Init containers cannot currently be added ,removed or updated.

        Default: - No init containers.

        Specified by:
        getInitContainers in interface AbstractPodProps
      • getSecurityContext

        public final PodSecurityContextProps getSecurityContext()
        Description copied from interface: AbstractPodProps
        SecurityContext holds pod-level security attributes and common container settings.

        Default: fsGroupChangePolicy: FsGroupChangePolicy.FsGroupChangePolicy.ALWAYS ensureNonRoot: false

        Specified by:
        getSecurityContext in interface AbstractPodProps
      • getServiceAccount

        public final IServiceAccount getServiceAccount()
        Description copied from interface: AbstractPodProps
        A service account provides an identity for processes that run in a Pod.

        When 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.

        Specified by:
        getServiceAccount in interface AbstractPodProps
      • getVolumes

        public final List<Volume> getVolumes()
        Description copied from interface: AbstractPodProps
        List of volumes that can be mounted by containers belonging to the pod.

        You can also add volumes later using podSpec.addVolume()

        Default: - No volumes.

        Specified by:
        getVolumes in interface AbstractPodProps
      • getMetadata

        public final org.cdk8s.ApiObjectMetadata getMetadata()
        Description copied from interface: ResourceProps
        Metadata that all persisted resources must have, which includes all objects users must create.
        Specified by:
        getMetadata in interface ResourceProps
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object