kubernetes1.5.2升级到kubernetes1.10一些主要的设定修改记录
本文记录了kubernetes1.5.2升级到kubernetes1.10一些主要的设定修改。
版本
升级方式
二进制替换之后修改systemd相关选项
docker设定
api-server设定
kubelet设定
/etc/kubernetes/kubeconfig内容:
[root@host124 ~]# cat /etc/kubernetes/kubeconfig
apiVersion: v1
kind: Config
users: []
preferences: {}
clusters:
- name: default
cluster:
server: http://192.168.163.121:8080
contexts:
- context:
cluster: default
user: “”
name: default
current-context: default
[root@host124 ~]#
结果确认
版本确认
[root@host121 ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"} [root@host121 ~]#
构成确认
[root@host121 ~]# kubectl get node -o wide
NAME STATUS ROLES AGE VERSION EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
192.168.163.122 Ready <none> 11h v1.10.0 <none> CentOS Linux 7 (Core) 3.10.0-693.el7.x86_64 docker://17.12.0-ce
192.168.163.123 Ready <none> 11h v1.10.0 <none> CentOS Linux 7 (Core) 3.10.0-693.el7.x86_64 docker://17.12.0-ce
192.168.163.124 Ready <none> 11h v1.10.0 <none> CentOS Linux 7 (Core) 3.10.0-693.el7.x86_64 docker://17.12.0-ce
[root@host121 ~]#
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对我们的支持。如果你想了解更多相关内容请查看下面相关链接