Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM-1831 add liveness/readiness checks for helm charts #224

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /apidocs
path: /apidocs/
port: http
readinessProbe:
httpGet:
path: /apidocs
path: /apidocs/
port: http
resources:
{{- toYaml .resources | nindent 12 }}
Expand Down
11 changes: 10 additions & 1 deletion uptime-service-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
ports:
- containerPort: {{ .Values.service.port }}
- name: http
containerPort: {{ .Values.service.port }}
env:
# Backend related variables
- name: REQUESTS_PER_PK_HOURLY
Expand Down Expand Up @@ -136,6 +137,14 @@ spec:
{{- if .Values.backend.extraEnvVars }}
{{- toYaml .Values.backend.extraEnvVars | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
volumeMounts:
- name: {{ .Release.Name }}-gcp-sa
mountPath: /uptime/gcloud
Expand Down
Loading