kubeasz/docs/upgrade.md

19 lines
839 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 升级注意事项
### v1.8 >>> v1.9
+ 1.下载最新项目代码 `cd /etc/ansible && git pull origin master`
+ 2.下载新的二进制 `k8s.190.tar.gz` 解压并覆盖 `/etc/ansible/bin/` 目录下文件
+ 3.更新集群 `cd /etc/ansible && ansible-playbook 90.setup.yml`
+ 4.[可选]升级`calico-kube-controllers`相关在任一node节点执行如下
``` bash
cd /root/kube-system/calico
kubectl delete deploy calico-kube-controllers -n kube-system
kubectl create -f calico-kube-controllers.yaml
```
注1升级过程会短暂中断集群中已经运行的应用如果你想要零中断升级可以在熟悉项目安装原理基础上自行尝试或者关注后续项目[使用指南]中的文档更新
注2k8s集群v1.8升级v1.9.0,目前测试不用修改任何服务参数,只要替换二进制文件;