Class V1StatefulSetSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1StatefulSetSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1StatefulSetSpec
extends Object
A StatefulSetSpec is the specification of a StatefulSet.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddVolumeClaimTemplatesItem
(V1PersistentVolumeClaim volumeClaimTemplatesItem) boolean
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available.Get ordinalsGet persistentVolumeClaimRetentionPolicypodManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down.replicas is the desired number of replicas of the given Template.revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history.Get selectorserviceName is the name of the service that governs this StatefulSet.Get templateGet updateStrategyvolumeClaimTemplates is a list of claims that pods are allowed to reference.int
hashCode()
minReadySeconds
(Integer minReadySeconds) ordinals
(V1StatefulSetOrdinals ordinals) persistentVolumeClaimRetentionPolicy
(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) podManagementPolicy
(String podManagementPolicy) revisionHistoryLimit
(Integer revisionHistoryLimit) selector
(V1LabelSelector selector) serviceName
(String serviceName) void
setMinReadySeconds
(Integer minReadySeconds) void
setOrdinals
(V1StatefulSetOrdinals ordinals) void
setPersistentVolumeClaimRetentionPolicy
(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) void
setPodManagementPolicy
(String podManagementPolicy) void
setReplicas
(Integer replicas) void
setRevisionHistoryLimit
(Integer revisionHistoryLimit) void
setSelector
(V1LabelSelector selector) void
setServiceName
(String serviceName) void
setTemplate
(V1PodTemplateSpec template) void
setUpdateStrategy
(V1StatefulSetUpdateStrategy updateStrategy) void
setVolumeClaimTemplates
(List<V1PersistentVolumeClaim> volumeClaimTemplates) template
(V1PodTemplateSpec template) toString()
updateStrategy
(V1StatefulSetUpdateStrategy updateStrategy) volumeClaimTemplates
(List<V1PersistentVolumeClaim> volumeClaimTemplates)
-
Field Details
-
SERIALIZED_NAME_MIN_READY_SECONDS
- See Also:
-
SERIALIZED_NAME_ORDINALS
- See Also:
-
SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM_RETENTION_POLICY
- See Also:
-
SERIALIZED_NAME_POD_MANAGEMENT_POLICY
- See Also:
-
SERIALIZED_NAME_REPLICAS
- See Also:
-
SERIALIZED_NAME_REVISION_HISTORY_LIMIT
- See Also:
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
SERIALIZED_NAME_SERVICE_NAME
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
SERIALIZED_NAME_UPDATE_STRATEGY
- See Also:
-
SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES
- See Also:
-
-
Constructor Details
-
V1StatefulSetSpec
public V1StatefulSetSpec()
-
-
Method Details
-
minReadySeconds
-
getMinReadySeconds
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)- Returns:
- minReadySeconds
-
setMinReadySeconds
-
ordinals
-
getOrdinals
Get ordinals- Returns:
- ordinals
-
setOrdinals
-
persistentVolumeClaimRetentionPolicy
public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) -
getPersistentVolumeClaimRetentionPolicy
@Nullable public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy()Get persistentVolumeClaimRetentionPolicy- Returns:
- persistentVolumeClaimRetentionPolicy
-
setPersistentVolumeClaimRetentionPolicy
public void setPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) -
podManagementPolicy
-
getPodManagementPolicy
podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.- Returns:
- podManagementPolicy
-
setPodManagementPolicy
-
replicas
-
getReplicas
replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.- Returns:
- replicas
-
setReplicas
-
revisionHistoryLimit
-
getRevisionHistoryLimit
revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.- Returns:
- revisionHistoryLimit
-
setRevisionHistoryLimit
-
selector
-
getSelector
Get selector- Returns:
- selector
-
setSelector
-
serviceName
-
getServiceName
serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.- Returns:
- serviceName
-
setServiceName
-
template
-
getTemplate
Get template- Returns:
- template
-
setTemplate
-
updateStrategy
-
getUpdateStrategy
Get updateStrategy- Returns:
- updateStrategy
-
setUpdateStrategy
-
volumeClaimTemplates
-
addVolumeClaimTemplatesItem
public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim volumeClaimTemplatesItem) -
getVolumeClaimTemplates
volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.- Returns:
- volumeClaimTemplates
-
setVolumeClaimTemplates
-
equals
-
hashCode
public int hashCode() -
toString
-