k8s-node-show

The control plane machine, and the worker machines that are part of a Kubernetes cluster are called nodes. This command is used to display information on Kubernetes control plane, and worker nodes.

Syntax   k8s-node-show

cluster-name cluster-name-string

Name of the Kubernetes cluster.

Specify one or more of the following options:


start-time date/time: yyyy-mm-ddTHH:mm:ss

The start time of statistics collection.

end-time date/time: yyyy-mm-ddTHH:mm:ss

The end time of statistics collection.

duration duration: #d#h#m#s

The duration of statistics collection.

interval duration: #d#h#m#s

The interval between statistics collection.

since-start

Statistics collected since start time.

older-than duration: #d#h#m#s

Display statistics older than the specified duration.

within-last duration: #d#h#m#s

Display statistics within the last specified duration.

node node-string

Name of the Kubernetes node.

role role-string

The role assigned to the node.

status status-string

The status of the node.

ip ip-string

The IP address of the node.

pod-CIDR pod-CIDR-string

The Pod CIDR for the node.

labels labels-string

The Pod labels.

action none|add|remove|update

The last action performed.


Defaults   None.

Access   CLI

History   

Version 7.0.0

Command introduced.

Usage   Use this command to display information on Kubernetes control plane, and worker nodes. 

Examples  Use the following syntax to display information on Kubernetes control plane, and worker nodes.

CLI (network-admin@switch) > k8s-node-show

cluster-name node            role          status       ip            pod-CIDR      last-changed

------------ --------------- ------------- ------------ ------------- ------------- --------------

k8s01        server-test-103 worker        KubeletReady 192.168.99.22 10.244.2.0/24 11-11,05:59:13

k8s01        server-test-93  control plane KubeletReady 192.168.99.20 10.244.0.0/24 11-11,06:02:21 

k8s01        server-test-94  worker        KubeletReady 192.168.99.21 10.244.1.0/24 11-11,05:58:36

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south