Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: mrjones <[email protected]>
  • Loading branch information
henokgetachew and mrjones-plip authored Dec 4, 2024
1 parent 33c3937 commit e080087
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ docker compose up
```

## Set Up Environment Variables

Be sure to replace both `<admin-user>` and `<password>` with your actual username and password. As well, update `<couchdb-host>` to the CouchDB URL from the Docker Compose setup:

```shell
# Replace with your actual CouchDB URL from the Docker Compose setup
export COUCH_URL=http://<your-admin-user>:<your-admin-password>@<couchdb-host>:5984
export COUCH_URL=http://<admin-user>:<password>@<couchdb-host>:5984
```

## Run Pre-Migration Commands
Expand Down
5 changes: 4 additions & 1 deletion content/en/hosting/4.x/_partial_values_explanation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ toc_hide: true
hide_summary: true
---

Be sure to update the following values in your YAML file:

* `<your-namespace>` (_two occurrences_)
* `<version>` - 4.x version you're upgrading to
* `<password>` - retrieved from `get-env` call above
* `<secret>` - retrieved from `get-env` call above
* `<admin_user>` - needs to be the same as used in 3.x - likely `medic`
* `<uuid>` - retrieved from `get-env` call above
* `<url>` - your DNS goes here (your-dns-address.org)
* `<url>` - the URL of your production instance goes here (eg `example.org`)
* `<path-to-tls>` - path to TLS files on disk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
Guide to migrate existing data from CHT 3.x Docker Compose deployment to CHT 4.x clustered K3s deployment with 3 CouchDB nodes
relatedContent: >
---
{{ < read-content file="hosting/4.x/_partial_migration_3x_docker_to_4x_k3s.md" }}
{{< read-content file="hosting/4.x/_partial_migration_3x_docker_to_4x_k3s.md" >}}

# Create directories on secondary nodes

Expand All @@ -16,11 +16,11 @@ ssh <user>@<node3-hostname> "sudo mkdir -p /srv/couchdb3/data/shards /srv/couchd
```

## Create values.yaml for K3s Deployment
{{ < read-content file="hosting/4.x/_partial_values_explanation.md" }}
{{< read-content file="hosting/4.x/_partial_values_explanation.md" >}}

```yaml
project_name: "your-namespace"
namespace: "your-namespace"
project_name: "<your-namespace>"
namespace: "<your-namespace>"
chtversion: <version>

upstream_servers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ description: >
Guide on how to migrate existing data from CHT 3.x Docker Compose deployment to CHT 4.x single-node K3s deployment
relatedContent: >
---
{{ < read-content file="hosting/4.x/_partial_migration_3x_docker_to_4x_k3s.md" }}
{{< read-content file="hosting/4.x/_partial_migration_3x_docker_to_4x_k3s.md" >}}

## Create values.yaml for K3s Deployment
{{ < read-content file="hosting/4.x/_partial_values_explanation.md" }}
{{< read-content file="hosting/4.x/_partial_values_explanation.md" >}}

```yaml
project_name: "your-namespace"
namespace: "your-namespace"
project_name: "<your-namespace>"
namespace: "<your-namespace>"
chtversion: <version>

upstream_servers:
Expand Down

0 comments on commit e080087

Please sign in to comment.