Skip to content

Commit

Permalink
add upgrade doc
Browse files Browse the repository at this point in the history
Signed-off-by: pixiake <[email protected]>
  • Loading branch information
pixiake committed Aug 28, 2020
1 parent 9a0f56b commit 0d1d5e0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,21 @@ kubectl edit cc ks-installer -n kubesphere-system
```bash
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
```

## Upgrade

1. Download the Yaml file as follows:

```bash
wget https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/kubesphere-installer.yaml
wget https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/cluster-configuration.yaml
```

2. Sync the changes from the v2.1.1 to v3.0.0 in the config section of `cluster-configuration.yaml`, note the storage class and the pluggable components need to be consistent with the v2.1.1:

```bash
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
```

> Note: If your KubeSphere version is v2.1.0 or eariler, please upgrade to v2.1.1 first.
17 changes: 17 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,20 @@ kubectl edit cc ks-installer -n kubesphere-system
```bash
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
```
## 升级

1. 下载v3.0.0部署文件:

```bash
wget https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/kubesphere-installer.yaml
wget https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/cluster-configuration.yaml
```

2. 同步v2.1.1配置到`cluster-configuration.yaml`中, 持久化存储及可插拔组件相关配置要与v2.1.1中配置保持一致:

```bash
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
```

> 注意: 如果当前集群中部署的KubeSphere版本是v2.1.0或更早的版本,请先升级到v2.1.1.

0 comments on commit 0d1d5e0

Please sign in to comment.