kubernetes 1.3.4版本之kubelet启动报错:
I0805 11:10:26.517174 2057 kubelet.go:2479] skipping pod synchronization - [container runtime is down] E0805 11:10:26.567819 2057 kubelet.go:2837] Container runtime sanity check failed: container runtime version is older than 1.21 |
之前升级 kubernetes 1.2版本也遇到,详见:http://my.oschina.net/fufangchun/blog/677117
看了下docker的版本是1.8.2的,api是1.20的,之前kubernetes 1.2.0是没有问题的
[root@localhost ~]# docker version Client: Version: 1.8.2-el7.centos API version: 1.20 Package Version: docker-1.8.2-10.el7.centos.x86_64 Go version: go1.4.2 Git commit: a01dc02/1.8.2 Built: OS/Arch: linux/amd64 Server: Version: 1.8.2-el7.centos API version: 1.20 Package Version: Go version: go1.4.2 Git commit: a01dc02/1.8.2 Built: OS/Arch: linux/amd64 |
确认是kube 1.3版本的需要docker的api版本是大于1.21,现在docker版本为:
[root@localhost ~]# docker version Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: OS/Arch: linux/amd64 Server: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: OS/Arch: linux/amd64 |
总结:
1、kubernetes 1.3版本,变动幅度较于kubernetes 1.2的不大,可以尝试下Pet Sets(Deployment的升级版)
2、kubernetes 1.3版本的需要docker的api版本是大于1.21的,可根据情况升级对应的docker版本
yum update systemd systemd-libs systemd-sysv -y vi docker.repo [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg yum install docker-engine -y #有出现下载失败,手动下载,安装rpm wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.12.0-1.el7.centos.x86_64.rpm rpm -ivh docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm rpm -ivh docker-engine-1.12.0-1.el7.centos.x86_64.rpm |
来源:oschina
链接:https://my.oschina.net/u/727880/blog/727774