Skip to content

Commit

Permalink
added readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
parkersarahl committed Jul 30, 2024
1 parent a5b6359 commit fb3d2d1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions todo/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
value: {{ .Values.database.password}}
- name: ENVIRONMENT
value: {{ .Values.environment}}
image: {{ .Values.api.image.repository}}:{{ .Values.api.image.tag}}
image: "{{ .Values.api.image.repository}}:{{ .Values.api.image.tag}}"
ports:
- containerPort: 80
- containerPort: 3000
readinessProbe:
httpGet:
path: /api/
port: 3000
initialDelaySeconds: 2
periodSeconds: 2

10 changes: 8 additions & 2 deletions todo/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ spec:
spec:
containers:
- name: todo-frontend
image: {{ .Values.frontend.image.repository}}:{{ .Values.frontend.image.tag}}
image: "{{ .Values.frontend.image.repository}}:{{ .Values.frontend.image.tag}}"
ports:
- containerPort: 80
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 2
periodSeconds: 2

0 comments on commit fb3d2d1

Please sign in to comment.