Skip to content

Commit

Permalink
Add Upgrading into README
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Apr 22, 2024
1 parent af5a2ee commit d04af5f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,31 @@ kubectl create -f driver.yaml
kubectl create -f csi-s3.yaml
```

If you're upgrading from a previous version which had `attacher.yaml` you
can safely delete all resources created from that file:
##### Upgrading

If you're upgrading from <= 0.35.5 - delete all resources from `attacher.yaml`:

```
wget https://raw.githubusercontent.com/yandex-cloud/k8s-csi-s3/v0.35.5/deploy/kubernetes/attacher.yaml
kubectl delete -f attacher.yaml
```

If you're upgrading from <= 0.40.6 - delete all resources from old `provisioner.yaml`:

```bash
wget -O old-provisioner.yaml https://raw.githubusercontent.com/yandex-cloud/k8s-csi-s3/v0.40.6/deploy/kubernetes/provisioner.yaml
kubectl delete -f old-provisioner.yaml
```

Then reapply `csi-s3.yaml`, `driver.yaml` and `provisioner.yaml`:

```bash
cd deploy/kubernetes
kubectl apply -f provisioner.yaml
kubectl apply -f driver.yaml
kubectl apply -f csi-s3.yaml
```

#### 3. Create the storage class

```bash
Expand Down

0 comments on commit d04af5f

Please sign in to comment.