Skip to content

Commit

Permalink
feat(#188): create civ deployment config file (#189)
Browse files Browse the repository at this point in the history
* feat(#188): create civ deployment config file

* feat(#188): update readme file
  • Loading branch information
inromualdo authored Jul 15, 2024
1 parent 975d57c commit 82f312e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
16 changes: 14 additions & 2 deletions scripts/deploy/medic-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ helm upgrade \
--values values/users-chis-tg.yaml \
users-chis-tg medic/cht-user-management
```

#### CIV
```shell
# Edit tag in users-chis-civ.yaml and then run:

helm upgrade \
--kube-context arn:aws:eks:eu-west-2:720541322708:cluster/prod-cht-eks \
--namespace users-chis-prod \
--values values/users-chis-civ.yaml \
users-chis-civ medic/cht-user-management
```

### How to

#### List all helm deployments
Expand Down Expand Up @@ -82,7 +94,7 @@ kubectl --context arn:aws:eks:eu-west-2:720541322708:cluster/prod-cht-eks \

#### View logs of a deployment

Where `$ENV` is one of `ke`, `ug` or `tg`
Where `$ENV` is one of `ke`, `ug` or `tg` or `civ`

```shell
kubectl --context arn:aws:eks:eu-west-2:720541322708:cluster/prod-cht-eks \
Expand All @@ -92,7 +104,7 @@ _You can replace `deploy/x` with for example `pods/y` from the get all command a

#### Get more details of a deployment

Where `$ENV` is one of `ke`, `ug` or `tg`
Where `$ENV` is one of `ke`, `ug` or `tg` or `civ`

```shell
kubectl --context arn:aws:eks:eu-west-2:720541322708:cluster/prod-cht-eks \
Expand Down
24 changes: 24 additions & 0 deletions scripts/deploy/values/users-chis-civ.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cht-user-management:
image:
tag: 1.1.6
env:
CONFIG_NAME: chis-civ

# EKS prod ELB
ingress:
enabled: true
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/tags: Environment=prod,Team=SRE
alb.ingress.kubernetes.io/group.name: prod-cht-alb
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:iam::720541322708:server-certificate/2024-wildcard-app-medicmobile-org-chain
className: alb
hosts:
- host: users-chis-civ.app.medicmobile.org
paths:
- path: /
pathType: Prefix

0 comments on commit 82f312e

Please sign in to comment.