k8s-cluster-show
A Kubernetes cluster consists of a control plane node, and a set of worker nodes that run containerized applications. Every cluster runs at least one worker node. This command is used to display Kubernetes cluster information.
Syntax k8s-cluster-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 statistic collection. |
interval duration: #d#h#m#s |
The interval between statistic 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. |
control-plane-node control-plane-node-string |
The control plane node name. |
control-plane-node-ip control-plane-node-ip-string |
The control plane node name. |
controller-status controller-status-string |
The status of the Kubernetes controller. |
scheduler-status |
The status of the Kubernetes scheduler. |
action none|add|remove|update |
The last action. |
Defaults None.
Access CLI
History
Version 7.0.0 |
Command introduced. |
Usage Use this command to display the Kubernetes cluster information.
Examples To display the Kubernetes cluster information, use this command:
CLI (network-admin@switch) > k8s-cluster-show
cluster-name control-plane-node control-plane-node-ip controller-stauts scheduler-status lastchanged
------------ ------------------ --------------------- ----------------- ---------------- -------------
k8s01 server-test-93 192.168.10.10 healthy healthy 0712,23:25:21