kubernetes_asyncio.client.models.v1_replication_controller_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_replication_controller_spec.V1ReplicationControllerSpec(min_ready_seconds=None, replicas=None, selector=None, template=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', 'replicas': 'replicas', 'selector': 'selector', 'template': 'template'}
- property min_ready_seconds
Gets the min_ready_seconds of this V1ReplicationControllerSpec. # 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 V1ReplicationControllerSpec. # noqa: E501
- Return type:
int
- openapi_types = {'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'dict(str, str)', 'template': 'V1PodTemplateSpec'}
- property replicas
Gets the replicas of this V1ReplicationControllerSpec. # noqa: E501
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501
- Returns:
The replicas of this V1ReplicationControllerSpec. # noqa: E501
- Return type:
int
- property selector
Gets the selector of this V1ReplicationControllerSpec. # noqa: E501
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501
- Returns:
The selector of this V1ReplicationControllerSpec. # noqa: E501
- Return type:
dict(str, str)
- property template
Gets the template of this V1ReplicationControllerSpec. # noqa: E501
- Returns:
The template of this V1ReplicationControllerSpec. # noqa: E501
- Return type:
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model