Skip to content

Commit

Permalink
studio: Add readinessProbe and livenessProbe in Deployments (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper7 authored Nov 23, 2022
1 parent 09752be commit 61ab515
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 32 deletions.
15 changes: 7 additions & 8 deletions studio/templates/deployment-studio-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ spec:
- name: http
containerPort: 8000
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
readinessProbe:
httpGet:
path: /health?format=json
port: 8000
initialDelaySeconds: 5
periodSeconds: 25
timeoutSeconds: 60
resources:
{{- toYaml .Values.studioBackend.resources | nindent 12 }}
env:
Expand Down
8 changes: 0 additions & 8 deletions studio/templates/deployment-studio-beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ spec:
- name: http
containerPort: 8000
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{- toYaml .Values.studioBeat.resources | nindent 12 }}
env:
Expand Down
20 changes: 12 additions & 8 deletions studio/templates/deployment-studio-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 25
timeoutSeconds: 10
resources:
{{- toYaml .Values.studioUi.resources | nindent 12 }}
env:
Expand Down
8 changes: 0 additions & 8 deletions studio/templates/deployment-studio-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ spec:
- name: http
containerPort: 8000
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{- toYaml .Values.studioWorker.resources | nindent 12 }}
env:
Expand Down

0 comments on commit 61ab515

Please sign in to comment.