Show / Hide Table of Contents

Class V1ContainerStatus

ContainerStatus contains details for the current status of this container.

Inheritance
object
V1ContainerStatus
Implements
IEquatable<V1ContainerStatus>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1ContainerStatus original

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
Type Description
IDictionary<string, ResourceQuantity>
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
Type Description
IList<V1ResourceStatus>
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
Type Description
string
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Image

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.

Declaration
[JsonPropertyName("image")]
public string Image { get; set; }
Property Value
Type Description
string
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
Type Description
string
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
Type Description
V1ContainerState
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
Type Description
string
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
Type Description
bool
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
Type Description
V1ResourceRequirements
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
Type Description
int
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
Type Description
bool?
View Source

State

State holds details about the container's current condition.

Declaration
[JsonPropertyName("state")]
public V1ContainerState State { get; set; }
Property Value
Type Description
V1ContainerState
View Source

StopSignal

StopSignal reports the effective stop signal for this container

Declaration
[JsonPropertyName("stopSignal")]
public string StopSignal { get; set; }
Property Value
Type Description
string
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
Type Description
V1ContainerUser
View Source

VolumeMounts

Status of volume mounts.

Declaration
[JsonPropertyName("volumeMounts")]
public IList<V1VolumeMountStatus> VolumeMounts { get; set; }
Property Value
Type Description
IList<V1VolumeMountStatus>

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1ContainerStatus?)

Declaration
public virtual bool Equals(V1ContainerStatus? other)
Parameters
Type Name Description
V1ContainerStatus other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1ContainerStatus?, V1ContainerStatus?)

Declaration
public static bool operator ==(V1ContainerStatus? left, V1ContainerStatus? right)
Parameters
Type Name Description
V1ContainerStatus left
V1ContainerStatus right
Returns
Type Description
bool
View Source

operator !=(V1ContainerStatus?, V1ContainerStatus?)

Declaration
public static bool operator !=(V1ContainerStatus? left, V1ContainerStatus? right)
Parameters
Type Name Description
V1ContainerStatus left
V1ContainerStatus right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX