kubernetes_asyncio.client.models.v1_container_status 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_container_status.V1ContainerStatus(allocated_resources=None, allocated_resources_status=None, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, resources=None, restart_count=None, started=None, state=None, stop_signal=None, user=None, volume_mounts=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.
- property allocated_resources
Gets the allocated_resources of this V1ContainerStatus. # noqa: E501
AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. # noqa: E501
- Returns:
The allocated_resources of this V1ContainerStatus. # noqa: E501
- Return type:
dict(str, str)
- property allocated_resources_status
Gets the allocated_resources_status of this V1ContainerStatus. # noqa: E501
AllocatedResourcesStatus represents the status of various resources allocated for this Pod. # noqa: E501
- Returns:
The allocated_resources_status of this V1ContainerStatus. # noqa: E501
- Return type:
list[V1ResourceStatus]
- attribute_map = {'allocated_resources': 'allocatedResources', 'allocated_resources_status': 'allocatedResourcesStatus', 'container_id': 'containerID', 'image': 'image', 'image_id': 'imageID', 'last_state': 'lastState', 'name': 'name', 'ready': 'ready', 'resources': 'resources', 'restart_count': 'restartCount', 'started': 'started', 'state': 'state', 'stop_signal': 'stopSignal', 'user': 'user', 'volume_mounts': 'volumeMounts'}
- property container_id
Gets the container_id of this V1ContainerStatus. # noqa: E501
ContainerID is the ID of the container in the format ‘<type>://<container_id>’. Where type is a container runtime identifier, returned from Version call of CRI API (for example “containerd”). # noqa: E501
- Returns:
The container_id of this V1ContainerStatus. # noqa: E501
- Return type:
str
- property image
Gets the image of this V1ContainerStatus. # noqa: E501
Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. # noqa: E501
- Returns:
The image of this V1ContainerStatus. # noqa: E501
- Return type:
str
- property image_id
Gets the image_id of this V1ContainerStatus. # noqa: E501
ImageID is the image ID of the container’s image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. # noqa: E501
- Returns:
The image_id of this V1ContainerStatus. # noqa: E501
- Return type:
str
- property last_state
Gets the last_state of this V1ContainerStatus. # noqa: E501
- Returns:
The last_state of this V1ContainerStatus. # noqa: E501
- Return type:
- property name
Gets the name of this V1ContainerStatus. # noqa: E501
Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. # noqa: E501
- Returns:
The name of this V1ContainerStatus. # noqa: E501
- Return type:
str
- openapi_types = {'allocated_resources': 'dict(str, str)', 'allocated_resources_status': 'list[V1ResourceStatus]', 'container_id': 'str', 'image': 'str', 'image_id': 'str', 'last_state': 'V1ContainerState', 'name': 'str', 'ready': 'bool', 'resources': 'V1ResourceRequirements', 'restart_count': 'int', 'started': 'bool', 'state': 'V1ContainerState', 'stop_signal': 'str', 'user': 'V1ContainerUser', 'volume_mounts': 'list[V1VolumeMountStatus]'}
- property ready
Gets the ready of this V1ContainerStatus. # noqa: E501
Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. # noqa: E501
- Returns:
The ready of this V1ContainerStatus. # noqa: E501
- Return type:
bool
- property resources
Gets the resources of this V1ContainerStatus. # noqa: E501
- Returns:
The resources of this V1ContainerStatus. # noqa: E501
- Return type:
- property restart_count
Gets the restart_count of this V1ContainerStatus. # noqa: E501
RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. # noqa: E501
- Returns:
The restart_count of this V1ContainerStatus. # noqa: E501
- Return type:
int
- property started
Gets the started of this V1ContainerStatus. # noqa: E501
Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. # noqa: E501
- Returns:
The started of this V1ContainerStatus. # noqa: E501
- Return type:
bool
- property state
Gets the state of this V1ContainerStatus. # noqa: E501
- Returns:
The state of this V1ContainerStatus. # noqa: E501
- Return type:
- property stop_signal
Gets the stop_signal of this V1ContainerStatus. # noqa: E501
StopSignal reports the effective stop signal for this container # noqa: E501
- Returns:
The stop_signal of this V1ContainerStatus. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property user
Gets the user of this V1ContainerStatus. # noqa: E501
- Returns:
The user of this V1ContainerStatus. # noqa: E501
- Return type:
- property volume_mounts
Gets the volume_mounts of this V1ContainerStatus. # noqa: E501
Status of volume mounts. # noqa: E501
- Returns:
The volume_mounts of this V1ContainerStatus. # noqa: E501
- Return type:
list[V1VolumeMountStatus]