[plex] Add ability to disable and customize probes (#505)

This commit is contained in:
Marco Kilchhofer 2021-01-21 19:23:16 +01:00 committed by GitHub
parent 667951e6e6
commit cb1d6b70dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 17 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.20.2.3402
description: Plex Media Server
name: plex
version: 2.2.0
version: 2.3.0
keywords:
- plex
home: https://plex.tv/

View File

@ -191,25 +191,18 @@ spec:
value: "customCertificateDomain={{.Values.certificate.pkcsMangler.setPlexPreferences.customCertificateDomain}}"
{{- end }}
{{- end }}
{{- if .Values.probes.readiness.enabled }}
readinessProbe:
httpGet:
path: /identity
port: 32400
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
{{- omit .Values.probes.readiness "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.probes.liveness.enabled }}
livenessProbe:
httpGet:
path: /identity
port: 32400
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
{{- omit .Values.probes.liveness "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.probes.startup.enabled }}
startupProbe:
httpGet:
path: /identity
port: 32400
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
{{- omit .Values.probes.startup "enabled" | toYaml | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.persistence.data.enabled }}
- name: data

View File

@ -319,12 +319,24 @@ logging:
# Probes configuration
probes:
liveness:
enabled: true
httpGet:
path: /identity
port: 32400
failureThreshold: 5
periodSeconds: 10
readiness:
enabled: true
httpGet:
path: /identity
port: 32400
failureThreshold: 5
periodSeconds: 10
startup:
enabled: true
httpGet:
path: /identity
port: 32400
initialDelaySeconds: 5
failureThreshold: 30
periodSeconds: 10