Skip to content

Commit

Permalink
update helm chart to utilize opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldragontattoo authored and willbarton committed Dec 12, 2024
1 parent 758c667 commit c28b40c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
!dump-data.sh
!Dockerfile
!frontend.sh
!index.sh
!initial-data.sh
!jest.config.js
!package.json
Expand Down
1 change: 1 addition & 0 deletions cfgov/cfgov/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
os.getenv("ES_USER", "admin"),
os.getenv("ES_PASS", "admin"),
),
"use_ssl": True,
"verify_certs": False,
}
}
Expand Down
7 changes: 5 additions & 2 deletions helm/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ dependencies:
- name: pgadmin4
repository: https://helm.runix.net
version: 1.33.3
digest: sha256:cddb1ff2c6977f93a32c08d0089bdff4dc00a80504dad4d728de5f027ce9df30
generated: "2024-12-06T05:48:28.869178-07:00"
- name: opensearch
repository: https://opensearch-project.github.io/helm-charts/
version: 1.31.3
digest: sha256:a9576d12585500d4f1e276d7d35b077f45b734cc2972183d519b60c0283980da
generated: "2024-12-10T07:53:25.026703-07:00"
5 changes: 4 additions & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ dependencies:
repository: https://charts.bitnami.com/bitnami
- name: pgadmin4
version: 1.33.3
repository: https://helm.runix.net
repository: https://helm.runix.net
- name: opensearch
version: 1.31.3
repository: https://opensearch-project.github.io/helm-charts/
Binary file added helm/charts/opensearch-1.31.3.tgz
Binary file not shown.
16 changes: 14 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ initContainers:
command:
- 'sh'
- '-c'
- 'until nc -z cfgov-postgresql 5432; do echo waiting for database; sleep 2; done;'
- 'until nc -z cfgov-postgresql 5432; do echo waiting for database; sleep 10; done;'
- 'until nc -z opensearch-cluster-master 9200; do echo waiting for opensearch; sleep 10; done;'
- name: cfgov-migrations
image:
repository: cfgov
Expand All @@ -24,10 +25,14 @@ initContainers:
value: "postgres://cfpb:cfpb@cfgov-postgresql:5432/cfgov"
- name: SECRET_KEY
value: "cfgov"
- name: ES_HOST
value: "opensearch-cluster-master"
- name: ES_PORT
value: "9200"
command:
- 'sh'
- '-c'
- './refresh-data.sh --noindex test.sql.gz'
- './refresh-data.sh test.sql.gz'


containers:
Expand All @@ -50,6 +55,10 @@ containers:
value: "postgres://cfpb:cfpb@cfgov-postgresql:5432/cfgov"
- name: SECRET_KEY
value: "cfgov"
- name: ES_HOST
value: "opensearch-cluster-master"
- name: ES_PORT
value: "9200"
- name: cfgov-apache
image:
repository: httpd
Expand Down Expand Up @@ -216,3 +225,6 @@ pgadmin4:
env:
email: [email protected]
password: test

opensearch:
replicas: 1

0 comments on commit c28b40c

Please sign in to comment.