K8s setup is broken after updating to latest k8ns bits of CentOS7 i.e. kubernetes 0:1.0.0-0.8.gitb2dafda.el7
[vagrant@localhost ~]$ kubectl get nodes
error: Failed to negotiate an api version. Server supports: map[v1beta1:{} v1beta2:{} v1beta3:{}]. Client supports: [v1].
[root@xx xxx]# vagrant ssh
[vagrant@localhost ~]$ kubectl get nodes
NAME LABELS STATUS
127.0.0.1 kubernetes.io/hostname=127.0.0.1 Ready
[vagrant@localhost ~]$ sudo yum update -y
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dependency Installed:
python-sqlalchemy.x86_64 0:0.9.8-1.el7
Updated:
atomic.x86_64 0:1.0-108.el7.centos docker.x86_64 0:1.7.1-108.el7.centos docker-python.x86_64 0:1.4.0-108.el7.centos docker-registry.x86_64 0:0.9.1-7.el7
docker-selinux.x86_64 0:1.7.1-108.el7.centos etcd.x86_64 0:2.0.13-2.el7 flannel.x86_64 0:0.2.0-10.el7 kubernetes.x86_64 0:1.0.0-0.8.gitb2dafda.el7
kubernetes-master.x86_64 0:1.0.0-0.8.gitb2dafda.el7 kubernetes-node.x86_64 0:1.0.0-0.8.gitb2dafda.el7 python-websocket-client.noarch 0:0.14.1-108.el7.centos tzdata.noarch 0:2015f-1.el7
[vagrant@localhost ~]$ kubectl get nodes
error: Failed to negotiate an api version. Server supports: map[v1beta1:{} v1beta2:{} v1beta3:{}]. Client supports: [v1].
[vagrant@localhost ~]$ sudo systemctl restart kube-apiserver.service
[vagrant@localhost ~]$ kubectl get nodes
error: couldn't read version from server: Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: connection refused
[vagrant@localhost ~]$ kubectl get nodes
error: couldn't read version from server: Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: connection refused
[vagrant@localhost ~]$ telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused