kubernetes_asyncio.client.models.v1_stateful_set_spec module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_stateful_set_spec.V1StatefulSetSpec(min_ready_seconds=None, ordinals=None, persistent_volume_claim_retention_policy=None, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'min_ready_seconds': 'minReadySeconds', 'ordinals': 'ordinals', 'persistent_volume_claim_retention_policy': 'persistentVolumeClaimRetentionPolicy', 'pod_management_policy': 'podManagementPolicy', 'replicas': 'replicas', 'revision_history_limit': 'revisionHistoryLimit', 'selector': 'selector', 'service_name': 'serviceName', 'template': 'template', 'update_strategy': 'updateStrategy', 'volume_claim_templates': 'volumeClaimTemplates'}
- property min_ready_seconds
Gets the min_ready_seconds of this V1StatefulSetSpec. # noqa: E501
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) # noqa: E501
- Returns:
The min_ready_seconds of this V1StatefulSetSpec. # noqa: E501
- Return type:
int
- openapi_types = {'min_ready_seconds': 'int', 'ordinals': 'V1StatefulSetOrdinals', 'persistent_volume_claim_retention_policy': 'V1StatefulSetPersistentVolumeClaimRetentionPolicy', 'pod_management_policy': 'str', 'replicas': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', 'service_name': 'str', 'template': 'V1PodTemplateSpec', 'update_strategy': 'V1StatefulSetUpdateStrategy', 'volume_claim_templates': 'list[V1PersistentVolumeClaim]'}
- property ordinals
Gets the ordinals of this V1StatefulSetSpec. # noqa: E501
- Returns:
The ordinals of this V1StatefulSetSpec. # noqa: E501
- Return type:
- property persistent_volume_claim_retention_policy
Gets the persistent_volume_claim_retention_policy of this V1StatefulSetSpec. # noqa: E501
- Returns:
The persistent_volume_claim_retention_policy of this V1StatefulSetSpec. # noqa: E501
- Return type:
- property pod_management_policy
Gets the pod_management_policy of this V1StatefulSetSpec. # noqa: E501
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. # noqa: E501
- Returns:
The pod_management_policy of this V1StatefulSetSpec. # noqa: E501
- Return type:
str
- property replicas
Gets the replicas of this V1StatefulSetSpec. # noqa: E501
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. # noqa: E501
- Returns:
The replicas of this V1StatefulSetSpec. # noqa: E501
- Return type:
int
- property revision_history_limit
Gets the revision_history_limit of this V1StatefulSetSpec. # noqa: E501
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. # noqa: E501
- Returns:
The revision_history_limit of this V1StatefulSetSpec. # noqa: E501
- Return type:
int
- property selector
Gets the selector of this V1StatefulSetSpec. # noqa: E501
- Returns:
The selector of this V1StatefulSetSpec. # noqa: E501
- Return type:
- property service_name
Gets the service_name of this V1StatefulSetSpec. # noqa: E501
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. # noqa: E501
- Returns:
The service_name of this V1StatefulSetSpec. # noqa: E501
- Return type:
str
- property template
Gets the template of this V1StatefulSetSpec. # noqa: E501
- Returns:
The template of this V1StatefulSetSpec. # noqa: E501
- Return type:
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property update_strategy
Gets the update_strategy of this V1StatefulSetSpec. # noqa: E501
- Returns:
The update_strategy of this V1StatefulSetSpec. # noqa: E501
- Return type:
- property volume_claim_templates
Gets the volume_claim_templates of this V1StatefulSetSpec. # noqa: E501
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. # noqa: E501
- Returns:
The volume_claim_templates of this V1StatefulSetSpec. # noqa: E501
- Return type:
list[V1PersistentVolumeClaim]