hostname错误,导致node一直noready状态
[root@master-66eff4d1e3d4 /]#
[root@master-66eff4d1e3d4 /]# kubectl get node
NAME STATUS ROLES AGE VERSION
master-66eff4d1e3d4 Ready master 23h v1.14.3
[root@master-66eff4d1e3d4 /]# netstat -anp | grep 30001
tcp6 0 0 :::30001 :::* LISTEN 6739/kube-proxy
[root@master-66eff4d1e3d4 /]# kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-fb8b8dccf-6r4qm 1/1 Running 0 23h
coredns-fb8b8dccf-gj7p8 1/1 Running 0 23h
etcd-master-66eff4d1e3d4 1/1 Running 5 23h
heapster-76b4794779-zzgns 1/1 Running 0 23h
kube-apiserver-master-66eff4d1e3d4 1/1 Running 6 23h
kube-controller-manager-master-66eff4d1e3d4 1/1 Running 10 23h
kube-flannel-ds-amd64-xhqgn 1/1 Running 0 23h
kube-proxy-5v2cd 1/1 Running 0 23h
kube-scheduler-master-66eff4d1e3d4 1/1 Running 10 23h
kubernetes-dashboard-6c54494555-nzhk5 1/1 Running 0 23h
monitoring-grafana-66d58f9889-pnsvc 1/1 Running 0 23h
monitoring-influxdb-5b4b9dc59f-695v6 1/1 Running 0 23h
[root@master-66eff4d1e3d4 /]#
[root@nfs-768097ff21fd /]# kubectl logs nginx-web-65dbd5fb6d-cf6mw
Error from server (NotFound): the server could not find the requested resource ( pods/log nginx-web-65dbd5fb6d-cf6mw)
[root@nfs-768097ff21fd /]#
[root@nfs-768097ff21fd /]#
[root@nfs-768097ff21fd /]# hostnamectl set-hostname master-66eff4d1e3d4
[root@nfs-768097ff21fd /]#
[root@nfs-768097ff21fd /]#
[root@nfs-768097ff21fd /]# exit
阅读(4317) | 评论(0) | 转发(0) |