fix(freshrss): liveness and readiness probes should use the oidc path when OIDC is enabled (#109)

This commit is contained in:
2025-03-15 14:00:15 +00:00
committed by GitHub
parent 43fcfff735
commit 37a2e2975f
3 changed files with 10 additions and 3 deletions

View File

@ -113,7 +113,6 @@ spec:
value: {{ printf "%s" (join " " .xForwardedHeaders) }}
{{- end }}
- name: OIDC_SESSION_INACTIVITY_TIMEOUT
# value: {{ printf "%d" (add .session.inactivityTimeout) }}
value: "{{ .session.inactivityTimeout }}"
{{- if ge .session.maxDuration 0.0 }}
- name: OIDC_SESSION_MAX_DURATION
@ -127,12 +126,20 @@ spec:
{{- end }}
livenessProbe:
httpGet:
{{- if .Values.freshrss.oidc.enabled }}
path: /i/oidc/
{{- else }}
path: /i/
{{- end }}
port: http
initialDelaySeconds: 30
readinessProbe:
httpGet:
{{- if .Values.freshrss.oidc.enabled }}
path: /i/oidc/
{{- else }}
path: /i/
{{- end }}
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}