Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for upgrading DirectPV via krew #740

Merged
merged 1 commit into from Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 18 additions & 1 deletion README.md
Expand Up @@ -54,10 +54,27 @@ $ kubectl apply -f functests/minio.yaml

For air-gapped setups and advanced installations, please refer to the [Installation Guide](./docs/installation.md).

### Upgrade from DirectPV v3.2.x
### Upgrade

Firstly, it is required to uninstall older version of DirectPV. Once it is uninstalled, follow [Installation instructions](#Installation) to install the latest DirectPV. In this process, all existing drives and volumes will be migrated automatically.

#### Upgrade using krew

Refer the following steps for upgrading DirectPV using krew

```sh
# Uninstall existing DirectPV installation
$ kubectl directpv uninstall

# Upgrade directpv plugin via krew
$ kubectl krew upgrade directpv

# Install latest DirectPV
$ kubectl directpv install
```

#### Upgrade from DirectPV v3.2.x

For migrating from older versions < v3.2.0, Please refer the [Upgrade Guide](./docs/upgrade.md)

### Security
Expand Down
4 changes: 0 additions & 4 deletions docs/upgrade.md
Expand Up @@ -9,10 +9,6 @@ Version Upgrade

DirectPV version upgrades are seameless and transparent. The resources will be upgraded automatically when you run the latest version over the existing resources. The latest version of DirectPV should be available in [krew](https://github.com/kubernetes-sigs/krew-index). For more details on the installation, Please refer the [Installation guidelines](./installation.md).

The following recording demonstrates the version upgrade path.

[![asciicast](https://asciinema.org/a/2Stv8ugsQg72rWOEWlLUVNWrV.svg)](https://asciinema.org/a/2Stv8ugsQg72rWOEWlLUVNWrV)

NOTE: For the users who don't prefer krew, Please find the latest images in [releases](https://github.com/minio/directpv/releases).


Expand Down