NodeStatus

io.k8s.api.core.v1.NodeStatus source ↗

NodeStatus is information about the current status of a node.

addresses[]NodeAddressList 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).
addressstring requiredThe node address.
typestring requiredNode address type, one of Hostname, ExternalIP or InternalIP.
allocatablemap[string]QuantityAllocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
capacitymap[string]QuantityCapacity represents the total resources of a node.More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
conditions[]NodeConditionConditions is an array of current observed node conditions.More info: https://kubernetes.io/docs/reference/node/node-status/#condition
lastHeartbeatTimeTimeLast time we got an update on a given condition.
lastTransitionTimeTimeLast time the condition transit from one status to another.
messagestringHuman readable message indicating details about last transition.
reasonstring(brief) reason for the condition's last transition.
statusstring requiredStatus of the condition, one of True, False, Unknown.
typestring requiredType of node condition.
configNodeConfigStatusStatus of the config assigned to the node via the dynamic Kubelet config feature.
activeNodeConfigSourceActive reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.
configMapConfigMapNodeConfigSourceConfigMap is a reference to a Node's ConfigMap
kubeletConfigKeystring requiredKubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.
namestring requiredName is the metadata.name of the referenced ConfigMap. This field is required in all cases.
namespacestring requiredNamespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.
resourceVersionstringResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
uidstringUID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
assignedNodeConfigSourceAssigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.
configMapConfigMapNodeConfigSourceConfigMap is a reference to a Node's ConfigMap
kubeletConfigKeystring requiredKubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.
namestring requiredName is the metadata.name of the referenced ConfigMap. This field is required in all cases.
namespacestring requiredNamespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.
resourceVersionstringResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
uidstringUID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
errorstringError describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.
lastKnownGoodNodeConfigSourceLastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.
configMapConfigMapNodeConfigSourceConfigMap is a reference to a Node's ConfigMap
kubeletConfigKeystring requiredKubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.
namestring requiredName is the metadata.name of the referenced ConfigMap. This field is required in all cases.
namespacestring requiredNamespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.
resourceVersionstringResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
uidstringUID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
daemonEndpointsNodeDaemonEndpointsEndpoints of daemons running on the Node.
kubeletEndpointDaemonEndpointEndpoint on which Kubelet is listening.
Portinteger (int32) requiredPort number of the given endpoint.
featuresNodeFeaturesFeatures describes the set of features implemented by the CRI implementation.
supplementalGroupsPolicybooleanSupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
images[]ContainerImageList of container images on this node
names[]stringNames by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"]
sizeBytesinteger (int64)The size of the image in bytes.
nodeInfoNodeSystemInfoSet of ids/uuids to uniquely identify the node.More info: https://kubernetes.io/docs/reference/node/node-status/#info
architecturestring requiredThe Architecture reported by the node
bootIDstring requiredBoot ID reported by the node.
containerRuntimeVersionstring requiredContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
kernelVersionstring requiredKernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
kubeProxyVersionstring requiredDeprecated: KubeProxy Version reported by the node.
kubeletVersionstring requiredKubelet Version reported by the node.
machineIDstring requiredMachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
operatingSystemstring requiredThe Operating System reported by the node
osImagestring requiredOS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
swapNodeSwapStatusSwap Info reported by the node.
capacityinteger (int64)Total amount of swap memory in bytes.
systemUUIDstring requiredSystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
phasestringNodePhase 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.
runtimeHandlers[]NodeRuntimeHandlerThe available runtime handlers.
featuresNodeRuntimeHandlerFeaturesSupported features.
recursiveReadOnlyMountsbooleanRecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
userNamespacesbooleanUserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
namestringRuntime handler name. Empty for the default runtime handler.
volumesAttached[]AttachedVolumeList of volumes that are attached to the node.
devicePathstring requiredDevicePath represents the device path where the volume should be available
namestring requiredName of the attached volume
volumesInUse[]stringList of attachable volumes in use (mounted) by the node.