struct Kubernetes::NodeStatus

Overview

NodeStatus is information about the current status of a node.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def addresses : Array(NodeAddress) | Nil #

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).


def addresses=(addresses : Array(NodeAddress) | Nil) #

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).


def allocatable : Hash(String, Quantity) | Nil #

Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.


def allocatable=(allocatable : Hash(String, Quantity) | Nil) #

Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.


def capacity : Hash(String, Quantity) | Nil #

Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity


def capacity=(capacity : Hash(String, Quantity) | Nil) #

Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity


def conditions : Array(NodeCondition) | Nil #

Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition


def conditions=(conditions : Array(NodeCondition) | Nil) #

Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition


def config : NodeConfigStatus | Nil #

Status of the config assigned to the node via the dynamic Kubelet config feature.


def config=(config : NodeConfigStatus | Nil) #

Status of the config assigned to the node via the dynamic Kubelet config feature.


def daemon_endpoints : NodeDaemonEndpoints | Nil #

Endpoints of daemons running on the Node.


def daemon_endpoints=(daemon_endpoints : NodeDaemonEndpoints | Nil) #

Endpoints of daemons running on the Node.


def declared_features : Array(String) | Nil #

DeclaredFeatures represents the features related to feature gates that are declared by the node.


def declared_features=(declared_features : Array(String) | Nil) #

DeclaredFeatures represents the features related to feature gates that are declared by the node.


def features : NodeFeatures | Nil #

Features describes the set of features implemented by the CRI implementation.


def features=(features : NodeFeatures | Nil) #

Features describes the set of features implemented by the CRI implementation.


def images : Array(ContainerImage) | Nil #

List of container images on this node


def images=(images : Array(ContainerImage) | Nil) #

List of container images on this node


def node_info : NodeSystemInfo | Nil #

Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info


def node_info=(node_info : NodeSystemInfo | Nil) #

Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info


def phase : String | Nil #

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.


def phase=(phase : String | Nil) #

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.


def runtime_handlers : Array(NodeRuntimeHandler) | Nil #

The available runtime handlers.


def runtime_handlers=(runtime_handlers : Array(NodeRuntimeHandler) | Nil) #

The available runtime handlers.


def volumes_attached : Array(AttachedVolume) | Nil #

List of volumes that are attached to the node.


def volumes_attached=(volumes_attached : Array(AttachedVolume) | Nil) #

List of volumes that are attached to the node.


def volumes_in_use : Array(String) | Nil #

List of attachable volumes in use (mounted) by the node.


def volumes_in_use=(volumes_in_use : Array(String) | Nil) #

List of attachable volumes in use (mounted) by the node.