Class V1StatefulSetSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1StatefulSetSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1StatefulSetSpec
extends Object
A StatefulSetSpec is the specification of a StatefulSet.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV1StatefulSetSpec
(V1LabelSelector selector, String serviceName, V1PodTemplateSpec template) -
Method Summary
Modifier and TypeMethodDescriptionaddvolumeClaimTemplatesItem
(V1PersistentVolumeClaim volumeClaimTemplatesItem) Add an item to the volumeClaimTemplates property in a chainable fashion.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.podManagementPolicy 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.serviceName is the name of the service that governs this StatefulSet.List<@Valid V1PersistentVolumeClaim>
volumeClaimTemplates is a list of claims that pods are allowed to reference.int
hashCode()
minReadySeconds
(Integer minReadySeconds) Set minReadySeconds in a chainable fashion.ordinals
(V1StatefulSetOrdinals ordinals) Set ordinals in a chainable fashion.persistentVolumeClaimRetentionPolicy
(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) Set persistentVolumeClaimRetentionPolicy in a chainable fashion.podManagementPolicy
(String podManagementPolicy) Set podManagementPolicy in a chainable fashion.Set replicas in a chainable fashion.revisionHistoryLimit
(Integer revisionHistoryLimit) Set revisionHistoryLimit in a chainable fashion.selector
(V1LabelSelector selector) Set selector in a chainable fashion.serviceName
(String serviceName) Set serviceName in a chainable fashion.void
setMinReadySeconds
(Integer minReadySeconds) Set the minReadySeconds property valuevoid
setOrdinals
(V1StatefulSetOrdinals ordinals) Set the ordinals property valuevoid
setPersistentVolumeClaimRetentionPolicy
(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) Set the persistentVolumeClaimRetentionPolicy property valuevoid
setPodManagementPolicy
(String podManagementPolicy) Set the podManagementPolicy property valuevoid
setReplicas
(Integer replicas) Set the replicas property valuevoid
setRevisionHistoryLimit
(Integer revisionHistoryLimit) Set the revisionHistoryLimit property valuevoid
setSelector
(V1LabelSelector selector) Set the selector property valuevoid
setServiceName
(String serviceName) Set the serviceName property valuevoid
setTemplate
(V1PodTemplateSpec template) Set the template property valuevoid
setUpdateStrategy
(V1StatefulSetUpdateStrategy updateStrategy) Set the updateStrategy property valuevoid
setVolumeClaimTemplates
(List<@Valid V1PersistentVolumeClaim> volumeClaimTemplates) Set the volumeClaimTemplates property valuetemplate
(V1PodTemplateSpec template) Set template in a chainable fashion.toString()
updateStrategy
(V1StatefulSetUpdateStrategy updateStrategy) Set updateStrategy in a chainable fashion.volumeClaimTemplates
(List<@Valid V1PersistentVolumeClaim> volumeClaimTemplates) Set volumeClaimTemplates in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_MIN_READY_SECONDS
- See Also:
-
JSON_PROPERTY_ORDINALS
- See Also:
-
JSON_PROPERTY_PERSISTENT_VOLUME_CLAIM_RETENTION_POLICY
- See Also:
-
JSON_PROPERTY_POD_MANAGEMENT_POLICY
- See Also:
-
JSON_PROPERTY_REPLICAS
- See Also:
-
JSON_PROPERTY_REVISION_HISTORY_LIMIT
- See Also:
-
JSON_PROPERTY_SELECTOR
- See Also:
-
JSON_PROPERTY_SERVICE_NAME
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
JSON_PROPERTY_UPDATE_STRATEGY
- See Also:
-
JSON_PROPERTY_VOLUME_CLAIM_TEMPLATES
- See Also:
-
-
Constructor Details
-
V1StatefulSetSpec
-
-
Method Details
-
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:
- the minReadySeconds property value
-
setMinReadySeconds
Set the minReadySeconds property value -
minReadySeconds
Set minReadySeconds in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
getOrdinals
- Returns:
- the ordinals property value
-
setOrdinals
Set the ordinals property value -
ordinals
Set ordinals in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
getPersistentVolumeClaimRetentionPolicy
- Returns:
- the persistentVolumeClaimRetentionPolicy property value
-
setPersistentVolumeClaimRetentionPolicy
public void setPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) Set the persistentVolumeClaimRetentionPolicy property value -
persistentVolumeClaimRetentionPolicy
public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) Set persistentVolumeClaimRetentionPolicy in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
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:
- the podManagementPolicy property value
-
setPodManagementPolicy
Set the podManagementPolicy property value -
podManagementPolicy
Set podManagementPolicy in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
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:
- the replicas property value
-
setReplicas
Set the replicas property value -
replicas
Set replicas in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
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:
- the revisionHistoryLimit property value
-
setRevisionHistoryLimit
Set the revisionHistoryLimit property value -
revisionHistoryLimit
Set revisionHistoryLimit in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
getSelector
- Returns:
- the selector property value
-
setSelector
Set the selector property value -
selector
Set selector in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
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:
- the serviceName property value
-
setServiceName
Set the serviceName property value -
serviceName
Set serviceName in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
getTemplate
- Returns:
- the template property value
-
setTemplate
Set the template property value -
template
Set template in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
getUpdateStrategy
- Returns:
- the updateStrategy property value
-
setUpdateStrategy
Set the updateStrategy property value -
updateStrategy
Set updateStrategy in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
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:
- the volumeClaimTemplates property value
-
setVolumeClaimTemplates
Set the volumeClaimTemplates property value -
volumeClaimTemplates
public V1StatefulSetSpec volumeClaimTemplates(List<@Valid V1PersistentVolumeClaim> volumeClaimTemplates) Set volumeClaimTemplates in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
addvolumeClaimTemplatesItem
public V1StatefulSetSpec addvolumeClaimTemplatesItem(V1PersistentVolumeClaim volumeClaimTemplatesItem) Add an item to the volumeClaimTemplates property in a chainable fashion.- Returns:
- The same instance of V1StatefulSetSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-