我的虚拟盒子
return this.states.find(data => data.stateId === stateId);
我的办公室
[root@k8s-master ~]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-master Ready master 34m v1.10.5
worker-node1 NotReady <none> 33m v1.10.5
[root@k8s-master ~]# kubectl get services --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 34m
default my-nginx NodePort 10.110.97.191 <none> 80:30080/TCP 32m
kube-system kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP 34m
[root@k8s-master ~]# kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
default my-nginx-77f56b88c8-5wc2x 1/1 Running 0 32m 10.44.0.2 worker-node1
default my-nginx-77f56b88c8-hlqdh 1/1 Running 0 32m 10.44.0.1 worker-node1
kube-system etcd-k8s-master 1/1 Running 0 33m 172.20.10.13 k8s-master
kube-system kube-apiserver-k8s-master 1/1 Running 0 33m 172.20.10.13 k8s-master
kube-system kube-controller-manager-k8s-master 1/1 Running 0 33m 172.20.10.13 k8s-master
kube-system kube-dns-86f4d74b45-44sbm 3/3 Running 0 34m 10.32.0.2 k8s-master
kube-system kube-proxy-llngk 1/1 Running 0 33m 172.20.10.14 worker-node1
kube-system kube-proxy-nzhrp 1/1 Running 0 34m 172.20.10.13 k8s-master
kube-system kube-scheduler-k8s-master 1/1 Running 0 33m 172.20.10.13 k8s-master
kube-system weave-net-c87g4 2/2 Running 1 33m 172.20.10.14 worker-node1
kube-system weave-net-s2v4s 2/2 Running 1 34m 172.20.10.13 k8s-master