Skip to content

Commit

Permalink
add zero downtime kubernetes upgrade tips
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsongjc committed Dec 21, 2017
1 parent b36e566 commit a62550b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added images/zero-downtime-kubernetes-upgrade-tips.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions practice/manually-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
大体上的升级步骤是,先升级master节点,然后再一次升级每台node节点。

## 升级建议

下图来自[@ahmetb](https://twitter.com/ahmetb)的Twitter,这是他对于0宕机时间的kubernetes集群升级建议。

![Kubernetes零宕机时间升级建议](../images/zero-downtime-kubernetes-upgrade-tips.jpg)

主要包括以下建议:

- 应用使用高级对象定义,如支持滚动更新的`Deployment`对象
- 应用要部署成多个实例
- 使用pod的preStop hook,加强pod的生命周期管理
- 使用就绪和健康检查探针来确保应用存活和及时阻拦应用流量的分发

### 准备

1. 备份kubernetes原先的二进制文件和配置文件。
Expand Down

0 comments on commit a62550b

Please sign in to comment.