本文記錄了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 versionClient 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 ~]#
總結
以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對VEVB武林網的支持。
新聞熱點
疑難解答
圖片精選