Skip to content

Commit

Permalink
Fixes after PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
henokgetachew committed Dec 3, 2024
1 parent 29a1556 commit d92eb53
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Create a `values.yaml` file using the volume ID from the previous step:
For single node deployment, create a YAML file with this contents, being sure to update:

* `<your-namespace-defined-in-NAMESPACE>` (_two occurrences_)
* `<version>` - 4.x version you're upgrading too
* `<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`
Expand Down
12 changes: 12 additions & 0 deletions content/en/hosting/4.x/_partial_values_explanation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
toc_hide: true
hide_summary: true
---

* `<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)
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ 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" }}

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

upstream_servers:
docker_registry: "public.ecr.aws/medic"
Expand All @@ -28,18 +30,18 @@ upgrade_service:
tag: 0.32

couchdb:
password: "<your-saved-password>"
secret: "<your-saved-secret>"
user: "<your-admin-user>"
uuid: "<your-saved-uuid>"
password: "<password>"
secret: "<secret>"
user: "<admin-user>"
uuid: "<uuid>"
clusteredCouch_enabled: true
couchdb_node_storage_size: 100Gi

clusteredCouch:
noOfCouchDBNodes: 3

ingress:
host: "your-url.org"
host: "<url>"

environment: "remote"
cluster_type: "k3s-k3d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ relatedContent: >
{{ < 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" }}

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

upstream_servers:
docker_registry: "public.ecr.aws/medic"
Expand All @@ -21,15 +23,15 @@ upgrade_service:
tag: 0.32

couchdb:
password: "<your-admin-password>"
secret: "<your-saved-secret>"
user: "<your-admin-user>"
uuid: "<your-saved-uuid>"
password: "<password>"
secret: "<secret>"
user: "<admin-user>"
uuid: "<uuid>"
clusteredCouch_enabled: false
couchdb_node_storage_size: 100Gi

ingress:
host: "your-url.org"
host: "<url>"

environment: "remote"
cluster_type: "k3s-k3d"
Expand Down

0 comments on commit d92eb53

Please sign in to comment.