PodStatus class
PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.
Constructors
-
PodStatus({List<
PodCondition> ? conditions, List<ContainerStatus> ? containerStatuses, List<ContainerStatus> ? ephemeralContainerStatuses, String? hostIP, List<ContainerStatus> ? initContainerStatuses, String? message, String? nominatedNodeName, String? phase, String? podIP, List<PodIP> ? podIPs, String? qosClass, String? reason, String? resize, DateTime? startTime}) -
Default constructor.
const
-
PodStatus.fromJson(Map<
String, dynamic> json) -
Creates a PodStatus from JSON data.
factory
Properties
-
conditions
→ List<
PodCondition> ? -
Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions.
final
-
containerStatuses
→ List<
ContainerStatus> ? -
The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status.
final
-
ephemeralContainerStatuses
→ List<
ContainerStatus> ? -
Status for any ephemeral containers that have run in this pod.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostIP → String?
-
IP address of the host to which the pod is assigned. Empty if not yet scheduled.
final
-
initContainerStatuses
→ List<
ContainerStatus> ? -
The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status.
final
- message → String?
-
A human readable message indicating details about why the pod is in this condition.
final
- nominatedNodeName → String?
-
nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.
final
- phase → String?
-
The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:
final
- podIP → String?
-
IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.
final
-
podIPs
→ List<
PodIP> ? -
podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.
final
- qosClass → String?
-
The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes.
final
- reason → String?
-
A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'.
final
- resize → String?
-
Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed".
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime?
-
RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a PodStatus instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited