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

docs: clarify docker compose upgrade #1604

Merged
merged 1 commit into from
Dec 8, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/MigratePrometheusDocker.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ docker volume create --name harvest_prometheus_data
## Copy the historical Prometheus data

We will copy the historical Prometheus data from the old volume to the new one by
mounting both volumes and copying data between them.
mounting both volumes and copying data between them. **NOTE**: Prometheus only supports copying a single volume. It will
not work if you attempt to copy multiple volumes into the same destination volume.

```bash
# replace `HISTORICAL_VOLUME` with the name of the Prometheus volume that contains you historical data found in step 2.
Expand Down
13 changes: 7 additions & 6 deletions docs/install/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,21 @@ docker-compose -f prom-stack.yml -f harvest-compose.yml down

> Note: If you want to keep your historical Prometheus data, and you set up your Docker Compose workflow before
> Harvest `22.11`, please read how
> to [migrate your Prometheus volume](https://github.com/NetApp/harvest/blob/main/docs/MigratePrometheusDocker.md) before
> continuing with the upgrade steps below.
> to [migrate your Prometheus volume](https://github.com/NetApp/harvest/blob/main/docs/MigratePrometheusDocker.md)
> before continuing with the upgrade steps below.

To upgrade Harvest:

1. Download the latest `tar.gz` or packaged version and install it.
This is needed since the new version may contain new templates, dashboards, or other files not included in the Docker
image.

2. Check the release notes to see if there are new features or fixes in the `harvest docker generate` command you want
to take advantage of.
If so, regenerate your Docker compose file(s).
2. Copy your existing `harvest.yml` into the new Harvest directory created in step #1.

3. Pull new images and restart your containers like so:
3. Regenerate your `harvest-compose.yml` file by
running `bin/harvest generate docker full --port --output harvest-compose.yml`

4. Pull new images and restart your containers like so:

```
docker pull cr.netapp.io/harvest # or if using Docker Hub: docker pull rahulguptajss/harvest
Expand Down
96 changes: 0 additions & 96 deletions pkg/docs/MigratePrometheusDocker.md

This file was deleted.