Skip to content

Commit

Permalink
chore: deployment healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Jan 7, 2024
1 parent 3cbe281 commit 0ba82f0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deployment/helm/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ spec:
containerPort: 5001
- name: yesbot-schema
containerPort: 5002

livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10
exec:
command:
- wget
- '--post-data=""'
- http://localhost:5002/_yesbot-schema
- '-O'
- /dev/null
- '-q'
env:
- name: NODE_ENV
value: production
Expand Down
6 changes: 6 additions & 0 deletions deployment/helm/templates/cms/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
ports:
- name: payload
containerPort: 3001
livenessProbe:
initialDelaySeconds: 5
periodSeconds: 5
httpGet:
path: /admin
port: 3001
env:
- name: ENABLE_DATASEEDER
value: "true"
Expand Down
6 changes: 6 additions & 0 deletions deployment/helm/templates/typesense/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ spec:
ports:
- name: typesense
containerPort: 8108
livenessProbe:
initialDelaySeconds: 1
periodSeconds: 5
httpGet:
path: /health
port: 8108
env:
- name: TYPESENSE_DATA_DIR
value: /data
Expand Down
6 changes: 6 additions & 0 deletions deployment/helm/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
ports:
- name: next
containerPort: 3000
livenessProbe:
initialDelaySeconds: 5
periodSeconds: 10
httpGet:
path: /
port: 3000
env:
- name: SERVER_BACKEND_GRAPHQL_URL
value: http://ytf-backend-service/graphql
Expand Down

0 comments on commit 0ba82f0

Please sign in to comment.