pub struct NodeStatus {Show 13 fields
pub capacity: BTreeMap<String, Quantity>,
pub allocatable: BTreeMap<String, Quantity>,
pub phase: Option<String>,
pub conditions: Vec<NodeCondition>,
pub addresses: Vec<NodeAddress>,
pub daemon_endpoints: Option<NodeDaemonEndpoints>,
pub node_info: Option<NodeSystemInfo>,
pub images: Vec<ContainerImage>,
pub volumes_in_use: Vec<String>,
pub volumes_attached: Vec<AttachedVolume>,
pub config: Option<NodeConfigStatus>,
pub runtime_handlers: Vec<NodeRuntimeHandler>,
pub features: Option<NodeFeatures>,
}
Expand description
NodeStatus is information about the current status of a node.
Fields§
§capacity: BTreeMap<String, Quantity>
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity +optional
allocatable: BTreeMap<String, Quantity>
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. +optional
phase: Option<String>
NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. +optional
conditions: Vec<NodeCondition>
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
addresses: Vec<NodeAddress>
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node’s address in its own status or consumers of the downward API (status.hostIP). +optional +patchMergeKey=type +patchStrategy=merge +listType=map +listMapKey=type
daemon_endpoints: Option<NodeDaemonEndpoints>
Endpoints of daemons running on the Node. +optional
node_info: Option<NodeSystemInfo>
Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info +optional
images: Vec<ContainerImage>
List of container images on this node +optional +listType=atomic
volumes_in_use: Vec<String>
List of attachable volumes in use (mounted) by the node. +optional +listType=atomic
volumes_attached: Vec<AttachedVolume>
List of volumes that are attached to the node. +optional +listType=atomic
config: Option<NodeConfigStatus>
Status of the config assigned to the node via the dynamic Kubelet config feature. +optional
runtime_handlers: Vec<NodeRuntimeHandler>
The available runtime handlers. +featureGate=RecursiveReadOnlyMounts +featureGate=UserNamespacesSupport +optional +listType=atomic
features: Option<NodeFeatures>
Features describes the set of features implemented by the CRI implementation. +featureGate=SupplementalGroupsPolicy +optional
Implementations§
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NodeStatus
impl Debug for NodeStatus
Source§impl Default for NodeStatus
impl Default for NodeStatus
Source§impl Message for NodeStatus
impl Message for NodeStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.