-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cht-user-managment-worker and redis to cht-user-management helm c…
…harts (#26) * helm chart updated to deploy with redis and new vars. Worker added but still requires update to single base app to make ports and probes optional. * Added options around ports, services and probes in case app doesnt require them. Step needed for cht-user-management-worker to be able to use single-base-app without live deployment resource modifications * Working checkpoint! with semVer fixes in dependencies
- Loading branch information
Showing
8 changed files
with
106 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
dependencies: | ||
- name: base-single-app | ||
repository: https://docs.communityhealthtoolkit.org/helm-charts | ||
version: 0.2.0 | ||
digest: sha256:284a3dc5e9eb4c400a3abff6f49faa047ad11d2dbbc873e8adf8829cde321aae | ||
generated: "2024-04-10T11:32:50.118338+02:00" | ||
repository: file://../base-single-app | ||
version: 0.2.2 | ||
- name: base-single-app | ||
repository: file://../base-single-app | ||
version: 0.2.2 | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 16.13.2 | ||
digest: sha256:cd591bdfad18b05b5cc473ffd5796b630ac8e10248ae6e7ca4f0b716e78369a2 | ||
generated: "2024-10-29T16:04:11.007238-06:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,75 @@ | ||
cht-user-management: | ||
replicaCount: 1 | ||
|
||
service: | ||
port: 3000 | ||
|
||
enabled: true | ||
image: | ||
repository: public.ecr.aws/medic/cht-user-management | ||
tag: "" # Set this to the version of the docker image | ||
tag: "1.4.1" # Set this to the version of the docker image | ||
|
||
# Environment variablues to set in the pod, for example: | ||
# env: | ||
# CONFIG_NAME: changeme | ||
env: {} | ||
|
||
# REDIS_HOST: {{ Release.Name }}-redis-master.{{ .Release.Namespace }}.svc.cluster.local | ||
env: | ||
NODE_ENV: dev | ||
CHT_DEV_HTTP: false | ||
CHT_DEV_URL_PORT: hareet-test.dev.medicmobile.org | ||
CONFIG_NAME: chis-tg | ||
REDIS_HOST: test-user-management-redis-master.hareet-test.svc.cluster.local | ||
REDIS_PORT: 6379 | ||
envSecrets: | ||
# COOKIE_PRIVATE_KEY will be automatically generated if it doesn't exist | ||
# COOKIE/WORKER_PRIVATE_KEY will be automatically generated if it doesn't exist | ||
- env: COOKIE_PRIVATE_KEY | ||
secretName: '{{ include "chtUserManagement.fullname" . }}' | ||
secretName: "{{ .Release.Name }}-cht-user-management" | ||
- env: WORKER_PRIVATE_KEY | ||
secretName: "{{ .Release.Name }}-cht-user-management" | ||
|
||
ingress: | ||
annotations: | ||
alb.ingress.kubernetes.io/certificate-arn: arn:aws:iam::720541322708:server-certificate/2024-wildcard-dev-medicmobile-org-chain | ||
alb.ingress.kubernetes.io/group.name: dev-cht-alb | ||
alb.ingress.kubernetes.io/healthcheck-port: traffic-port | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/ssl-redirect: "443" | ||
alb.ingress.kubernetes.io/tags: Environment=dev,Team=QA | ||
alb.ingress.kubernetes.io/target-type: ip | ||
className: alb | ||
enabled: true | ||
hosts: | ||
- host: hareet-test-users.dev.medicmobile.org | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
|
||
|
||
cht-user-management-worker: | ||
# Our worker does not need any ports exposed, services, healtchecks, so we toggle this to false | ||
# to prevent single-base-app from templating and creating those resources | ||
service: | ||
enabled: false | ||
replicaCount: 1 | ||
image: | ||
repository: public.ecr.aws/medic/cht-user-management-worker | ||
tag: "1.4.1" | ||
env: | ||
NODE_ENV: dev | ||
REDIS_HOST: test-user-management-redis-master.hareet-test.svc.cluster.local | ||
REDIS_PORT: 6379 | ||
envSecrets: | ||
- env: WORKER_PRIVATE_KEY | ||
secretName: "{{ .Release.Name }}-cht-user-management" | ||
|
||
|
||
redis: | ||
architecture: standalone | ||
replica: | ||
replicaCount: 1 | ||
persistence: | ||
enabled: true | ||
storageClass: ebs-gp2 | ||
size: 8Gi | ||
auth: | ||
enabled: false | ||
|