Skip to content

Commit

Permalink
doc: add note about versions for helm upgrades (#8960)
Browse files Browse the repository at this point in the history
* doc: add note about versions for helm upgrades

* Fix repo search output

* Update website/pages/docs/platform/k8s/helm/run.mdx

Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>

Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
  • Loading branch information
jasonodonnell and tvoran committed May 8, 2020
1 parent 81afb3f commit 74ee689
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions website/pages/docs/platform/k8s/helm/run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ well.

#### Upgrading Vault Servers

!> **IMPORTANT NOTE:** Helm will install the latest chart found in a repo by default.
It's recommended to specify the chart version when upgrading.

To initiate the upgrade, set the `server.image` values to the desired Vault
version, either in a values yaml file or on the command line. For illustrative
purposes, the example below uses `vault:123.456`.
Expand All @@ -399,15 +402,22 @@ server:
tag: '123.456'
```

Next, list the Helm versions and choose the desired version to install.

```bash
helm search repo hashicorp/vault
NAME CHART VERSION APP VERSION DESCRIPTION
hashicorp/vault 0.5.0 Install and configure Vault on Kubernetes.
```

Next, test the upgrade with `--dry-run` first to verify the changes sent to the
Kubernetes cluster.

```bash
$ helm upgrade vault hashicorp/vault \
$ helm upgrade vault hashicorp/vault --version=0.5.0 \
--set='server.image.repository=vault' \
--set='server.image.tag=123.456' \
--dry-run
...
```

This should cause no changes (although the resources are updated). If
Expand Down

0 comments on commit 74ee689

Please sign in to comment.