Skip to content

Commit 960a2e1

Browse files
author
Vadym Mudryi
committed
fix: REDIS_HOST variable was lost while refactoring
1 parent d45d7d5 commit 960a2e1

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,15 @@ You need to fork the [opencrvs-countryconfig](https://github.com/opencrvs/opencr
154154

155155
## Common issues
156156

157-
### Countryconfig is failing with ImagePullBackOff
157+
### Container start is failing with ImagePullBackOff
158158

159159
Check image tag was set properly, use `kubectl`, adjust value in `kubernetes/opencrvs-services/values-dev.yaml`
160+
- Usually for repository your are working tag is `local`, e/g country config repository should have `local` tag only for countryconfig.
161+
- Check tag exists on docker hub (or any other repository)
162+
163+
### Reset local environment
164+
165+
Restart docker desktop
160166

161167
---
162168

charts/opencrvs-services/Troubleshooting inside Kubernetes cluste.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Troubleshooting inside Kubernetes cluster
55
```bash
66
USERNAME=o.admin
77
SUPER_USER_PASSWORD=password
8-
curl -X POST "http://auth.opencrvs-services-dev.svc.cluster.local:4040/authenticate-super-user" \
8+
curl -X POST "http://auth.opencrvs-dev.svc.cluster.local:4040/authenticate-super-user" \
99
-H "Content-Type: application/json" \
1010
-d '{
1111
"username": "'"${USERNAME}"'",
@@ -15,18 +15,22 @@ Troubleshooting inside Kubernetes cluster
1515

1616
2. Check gateway host:
1717
```bash
18-
GATEWAY_HOST=http://gateway.opencrvs-services-dev.svc.cluster.local:7070
18+
GATEWAY_HOST=http://gateway.opencrvs-dev.svc.cluster.local:7070
1919
curl -X GET \
2020
-H "Content-Type: application/json" \
2121
-H "Authorization: Bearer ${token}" \
2222
${GATEWAY_HOST}/locations?type=ADMIN_STRUCTURE&_count=0
2323
```
2424
3. Check config host:
2525
```bash
26-
curl -X GET \
26+
curl -v -X GET \
2727
-H "Content-Type: application/json" \
2828
-H "Authorization: Bearer ${token}" \
29-
http://config.opencrvs-services-dev.svc.cluster.local:2021/locations?type=ADMIN_STRUCTURE&_count=0
29+
http://config.opencrvs-dev.svc.cluster.local:2021/locations?type=ADMIN_STRUCTURE&_count=0
30+
```
31+
4. Check Hearth:
32+
```bash
33+
curl -v http://hearth.opencrvs-deps-dev.svc.cluster.local:3447/fhir/Location
3034
```
3135

3236
# Issues

charts/opencrvs-services/templates/auth-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ spec:
4949
- image: "ghcr.io/opencrvs/ocrvs-auth:{{ .Values.image.tag }}"
5050
name: auth
5151
env:
52+
- name: NODE_ENV
53+
value: production
5254
- name: REDIS_HOST
5355
value: {{ .Values.redis_host | quote }}
5456
- name: COUNTRY_CONFIG_URL
@@ -76,7 +78,7 @@ spec:
7678
- name: COUNTRY_CONFIG_URL_INTERNAL
7779
value: http://countryconfig.{{ .Release.Namespace }}.svc.cluster.local:3040
7880
- name: DOMAIN
79-
value: "{{ .Release.Namespace }}.svc.cluster.local"
81+
value: {{ .Values.hostname | quote }}
8082
{{- include "render-env-vars" (dict "service_name" "auth" "Values" .Values) }}
8183
ports:
8284
- containerPort: 4040

charts/opencrvs-services/templates/data-seeder.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# FIXME: This is likely not gonna work as expected and is naive implementation
2-
# see also https://github.com/opencrvs/opencrvs-core/issues/7451
31
{{- if .Values.data_seeder.enabled }}
42
apiVersion: batch/v1
53
kind: Job
64
metadata:
5+
annotations:
6+
"helm.sh/hook": post-install
7+
"helm.sh/hook-weight": "2"
78
labels:
89
app: data-seeder
910
name: data-seeder

charts/opencrvs-services/templates/migration-job.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# FIXME: This is likely not gonna work as expected and is naive implementation
2-
# see also https://github.com/opencrvs/opencrvs-core/issues/7451
31
apiVersion: batch/v1
42
kind: Job
53
metadata:
4+
annotations:
5+
# FIXME: This is likely not gonna work as expected and is naive implementation
6+
# see also https://github.com/opencrvs/opencrvs-core/issues/7451
7+
"helm.sh/hook": post-install,post-upgrade
8+
"helm.sh/hook-weight": "1" # Execute migration job before other jobs
69
labels:
710
app: migration
811
name: migration
@@ -41,6 +44,7 @@ spec:
4144
- name: WAIT_HOSTS
4245
value: "{{ .Values.mongodb_host }}:27017,{{ .Values.influxdb.host }}:{{ .Values.influxdb.port }},{{ .Values.minio.host }}:{{ .Values.minio.port }},{{ .Values.elasticsearch_host }}"
4346
{{- include "render-env-vars" (dict "service_name" "migration" "Values" .Values) }}
47+
# TODO: Check if these properties are required for the migration job.
4448
completions: 1 # Run the job once
4549
backoffLimit: 0 # Don't retry if the job fails
4650
restartPolicy: "OnFailure"

charts/opencrvs-services/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ minio:
1717
host: minio-0.minio.opencrvs-deps-dev.svc.cluster.local
1818
port: 3535
1919

20+
redis_host: redis-0.redis.opencrvs-deps-dev.svc.cluster.local
2021
# MongoDB hostname configuration.
2122
mongodb_host: mongodb-0.mongodb.opencrvs-deps-dev.svc.cluster.local
2223

0 commit comments

Comments
 (0)