Class NodeStatus

    • Method Detail

      • getAddresses

        public List<NodeAddress> getAddresses()
        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).
      • setAddresses

        public void setAddresses​(List<NodeAddress> addresses)
        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).
      • getAllocatable

        public Map<String,​Quantity> getAllocatable()
        Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
      • setAllocatable

        public void setAllocatable​(Map<String,​Quantity> allocatable)
        Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.
      • getCapacity

        public Map<String,​Quantity> getCapacity()
        Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
      • setCapacity

        public void setCapacity​(Map<String,​Quantity> capacity)
        Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
      • getConditions

        public List<NodeCondition> getConditions()
        Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition
      • setConditions

        public void setConditions​(List<NodeCondition> conditions)
        Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition
      • getConfig

        public NodeConfigStatus getConfig()
        NodeStatus is information about the current status of a node.
      • setConfig

        public void setConfig​(NodeConfigStatus config)
        NodeStatus is information about the current status of a node.
      • getDaemonEndpoints

        public NodeDaemonEndpoints getDaemonEndpoints()
        NodeStatus is information about the current status of a node.
      • setDaemonEndpoints

        public void setDaemonEndpoints​(NodeDaemonEndpoints daemonEndpoints)
        NodeStatus is information about the current status of a node.
      • getFeatures

        public NodeFeatures getFeatures()
        NodeStatus is information about the current status of a node.
      • setFeatures

        public void setFeatures​(NodeFeatures features)
        NodeStatus is information about the current status of a node.
      • getImages

        public List<ContainerImage> getImages()
        List of container images on this node
      • setImages

        public void setImages​(List<ContainerImage> images)
        List of container images on this node
      • getNodeInfo

        public NodeSystemInfo getNodeInfo()
        NodeStatus is information about the current status of a node.
      • setNodeInfo

        public void setNodeInfo​(NodeSystemInfo nodeInfo)
        NodeStatus is information about the current status of a node.
      • getPhase

        public String getPhase()
        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.
      • setPhase

        public void setPhase​(String phase)
        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.
      • setRuntimeHandlers

        public void setRuntimeHandlers​(List<NodeRuntimeHandler> runtimeHandlers)
        The available runtime handlers.
      • getVolumesAttached

        public List<AttachedVolume> getVolumesAttached()
        List of volumes that are attached to the node.
      • setVolumesAttached

        public void setVolumesAttached​(List<AttachedVolume> volumesAttached)
        List of volumes that are attached to the node.
      • getVolumesInUse

        public List<String> getVolumesInUse()
        List of attachable volumes in use (mounted) by the node.
      • setVolumesInUse

        public void setVolumesInUse​(List<String> volumesInUse)
        List of attachable volumes in use (mounted) by the node.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)