Skip to content
Open
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
6 changes: 4 additions & 2 deletions charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ spec:
- name: exporter
containerPort: 8080
protocol: TCP
{{- with .Values.livenessProbe }}
{{- if .Values.healthCheck.enabled }}
{{- with .Values.healthCheck.livenessProbe }}
livenessProbe: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
{{- with .Values.healthCheck.readinessProbe }}
readinessProbe: {{ toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
Expand Down
30 changes: 17 additions & 13 deletions charts/gitlab-ci-pipelines-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,23 @@ strategy:

## Liveness and Readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe:
httpGet:
path: /health/live
port: 8080

readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
failureThreshold: 3
periodSeconds: 30
healthCheck:
enabled: true

livenessProbe:
enabled: true
httpGet:
path: /health/live
port: 8080

readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
failureThreshold: 3
periodSeconds: 30

# nodeSelector -- node selector for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
Expand Down