Open DeyunLuo opened 3 years ago
➜ ~ kgpoowide -A + kubectl get pods -o=wide -A NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES default my-nginx-5f44486bdb-q5dr8 1/1 Running 0 3m59s 172.33.99.2 node2 <none> <none> default my-nginx-5f44486bdb-scttd 1/1 Running 0 3m59s 172.33.17.2 node3 <none> <none> default tomcat 1/1 Running 0 4m26s 172.33.29.3 node1 <none> <none> kube-system coredns-5bf6df8fc6-7t8z6 1/1 Running 0 11h 172.33.99.3 node2 <none> <none> kube-system coredns-5bf6df8fc6-bl8jk 1/1 Running 0 11h 172.33.17.3 node3 <none> <none> logging fluent-bit-cwx4g 1/1 Running 0 11h 172.33.17.4 node3 <none> <none> logging fluent-bit-mxw9j 1/1 Running 0 11h 172.33.99.4 node2 <none> <none> logging fluent-bit-pp62g 1/1 Running 1 11h 172.33.29.2 node1 <none> <none> ➜ ~ kgsvc -A + kubectl get service -A NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes ClusterIP 10.254.0.1 <none> 443/TCP 16h default my-nginx ClusterIP 10.254.162.39 <none> 80/TCP 4m2s kube-system kube-dns ClusterIP 10.254.0.2 <none> 53/UDP,53/TCP 11h ➜ ~ kg endpoints -A + kubectl get endpoints -A NAMESPACE NAME ENDPOINTS AGE default kubernetes 172.17.8.101:6443 16h default my-nginx 172.33.17.2:80,172.33.99.2:80 4m11s kube-system kube-controller-manager <none> 16h kube-system kube-dns 172.33.17.3:53,172.33.99.3:53,172.33.17.3:53 + 1 more... 11h kube-system kube-scheduler <none> 16h ➜ ~ kex my-nginx-5f44486bdb-q5dr8 nginx -- bin/bash + kubectl exec -i -t my-nginx-5f44486bdb-q5dr8 nginx -- bin/bash root@my-nginx-5f44486bdb-q5dr8:/# ping 172.33.17.2 PING 172.33.17.2 (172.33.17.2): 56 data bytes ^C--- 172.33.17.2 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss root@my-nginx-5f44486bdb-q5dr8:/#