Openshift:查看节点状态

来自WHY42
oc get nodes
oc get nodes -o wide

more: https://docs.openshift.com/container-platform/4.1/nodes/nodes/nodes-nodes-viewing.html

[vagrant@master ~]$ oc get nodes
NAME                 STATUS    ROLES          AGE       VERSION
master.example.com   Ready     infra,master   1d        v1.11.0+d4cacc0
node01.example.com   Ready     compute        1d        v1.11.0+d4cacc0
node02.example.com   Ready     compute        1d        v1.11.0+d4cacc0
[vagrant@master ~]$ oc get nodes -o wide
NAME                 STATUS    ROLES          AGE       VERSION           INTERNAL-IP      EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION               CONTAINER-RUNTIME
master.example.com   Ready     infra,master   1d        v1.11.0+d4cacc0   192.168.11.100   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1
node01.example.com   Ready     compute        1d        v1.11.0+d4cacc0   192.168.11.101   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1
node02.example.com   Ready     compute        1d        v1.11.0+d4cacc0   192.168.11.102   <none>        CentOS Linux 7 (Core)   3.10.0-957.12.2.el7.x86_64   docker://1.13.1