Class V1ContainerStatus
ContainerStatus contains details for the current status of this container.
Inheritance
V1ContainerStatus
Assembly: KubernetesClient.dll
Syntax
public record V1ContainerStatus : IEquatable<V1ContainerStatus>
Constructors
View Source
V1ContainerStatus()
Declaration
public V1ContainerStatus()
View Source
V1ContainerStatus(V1ContainerStatus)
Declaration
protected V1ContainerStatus(V1ContainerStatus original)
Parameters
Properties
View Source
AllocatedResources
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.
Declaration
[JsonPropertyName("allocatedResources")]
public IDictionary<string, ResourceQuantity> AllocatedResources { get; set; }
Property Value
View Source
AllocatedResourcesStatus
AllocatedResourcesStatus represents the status of various resources allocated
for this Pod.
Declaration
[JsonPropertyName("allocatedResourcesStatus")]
public IList<V1ResourceStatus> AllocatedResourcesStatus { get; set; }
Property Value
View Source
ContainerID
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").
Declaration
[JsonPropertyName("containerID")]
public string ContainerID { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Image
Declaration
[JsonPropertyName("image")]
public string Image { get; set; }
Property Value
View Source
ImageID
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.
Declaration
[JsonPropertyName("imageID")]
public string ImageID { get; set; }
Property Value
View Source
LastState
LastTerminationState holds the last termination state of the container to help
debug container crashes and restarts. This field is not populated if the
container is still running and RestartCount is 0.
Declaration
[JsonPropertyName("lastState")]
public V1ContainerState LastState { get; set; }
Property Value
View Source
Name
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.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
Ready
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.
Declaration
[JsonPropertyName("ready")]
public bool Ready { get; set; }
Property Value
View Source
Resources
Resources represents the compute resource requests and limits that have been
successfully enacted on the running container after it has been started or has
been successfully resized.
Declaration
[JsonPropertyName("resources")]
public V1ResourceRequirements Resources { get; set; }
Property Value
View Source
RestartCount
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.
Declaration
[JsonPropertyName("restartCount")]
public int RestartCount { get; set; }
Property Value
View Source
Started
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.
Declaration
[JsonPropertyName("started")]
public bool? Started { get; set; }
Property Value
View Source
State
State holds details about the container's current condition.
Declaration
[JsonPropertyName("state")]
public V1ContainerState State { get; set; }
Property Value
View Source
StopSignal
StopSignal reports the effective stop signal for this container
Declaration
[JsonPropertyName("stopSignal")]
public string StopSignal { get; set; }
Property Value
View Source
User
User represents user identity information initially attached to the first
process of the container
Declaration
[JsonPropertyName("user")]
public V1ContainerUser User { get; set; }
Property Value
View Source
VolumeMounts
Declaration
[JsonPropertyName("volumeMounts")]
public IList<V1VolumeMountStatus> VolumeMounts { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ContainerStatus?)
Declaration
public virtual bool Equals(V1ContainerStatus? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1ContainerStatus?, V1ContainerStatus?)
Declaration
public static bool operator ==(V1ContainerStatus? left, V1ContainerStatus? right)
Parameters
Returns
View Source
operator !=(V1ContainerStatus?, V1ContainerStatus?)
Declaration
public static bool operator !=(V1ContainerStatus? left, V1ContainerStatus? right)
Parameters
Returns
Implements