Enable metrics port and allow user to configure only retries

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
Petr Drastil 2021-08-23 20:24:52 +02:00
parent feab52817f
commit b3dad14bd3
No known key found for this signature in database
GPG key ID: B147517F4051E6ED
2 changed files with 22 additions and 10 deletions

View file

@ -73,16 +73,24 @@ spec:
- name: grpc
containerPort: {{ .Values.dex.containerPortGrpc }}
protocol: TCP
{{- if .Values.dex.metrics.enabled }}
- name: metrics
containerPort: {{ .Values.dex.containerPortMetrics }}
protocol: TCP
{{- end }}
{{- if .Values.dex.probes.enabled }}
livenessProbe:
{{- toYaml .Values.dex.probes.livenessProbe | nindent 10 }}
httpGet:
path: /healthz/live
port: metrics
{{- with .Values.dex.probes.livenessProbe }}
{{- toYaml . | nindent 10 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.dex.probes.readinessProbe | nindent 10 }}
httpGet:
path: /healthz/ready
port: metrics
{{- with .Values.dex.probes.readinessProbe }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
volumeMounts:
- mountPath: /tmp

View file

@ -264,13 +264,17 @@ dex:
probes:
enabled: false
livenessProbe:
httpGet:
path: /healthz/live
port: 5558
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /healthz/ready
port: 5558
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
serviceAccount:
create: true