Skip to content

Commit

Permalink
Support for liveness and readiness probes in photoprism
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Jul 4, 2024
1 parent 94900e9 commit f78a248
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/charts/photoprism/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: photoprism
description: Photoprism by mmontes11
type: application
version: 0.5.0
appVersion: 3.1.0
version: 0.6.0
appVersion: "240531"
maintainers:
- name: mmontes11
email: [email protected]
Expand Down
6 changes: 6 additions & 0 deletions deploy/charts/photoprism/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ spec:
httpGet:
path: /
port: http
{{ with .Values.livenessProbe }}
{{ toYaml . | nindent 12 }}
{{ end }}
readinessProbe:
httpGet:
path: /
port: http
{{ with .Values.readinessProbe }}
{{ toYaml . | nindent 12 }}
{{ end }}
resources:
{{ toYaml .Values.resources | nindent 12 }}
ports:
Expand Down
16 changes: 15 additions & 1 deletion deploy/charts/photoprism/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fullnameOverride: ""

image:
repository: photoprism/photoprism
tag: "221118-jammy"
tag: ""
pullPolicy: IfNotPresent

env:
Expand Down Expand Up @@ -86,6 +86,20 @@ httpRoute:
name: traefik
namespace: networking

livenessProbe:
initialDelaySeconds: 20
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
timeoutSeconds: 5

readinessProbe:
initialDelaySeconds: 20
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
timeoutSeconds: 5

resources:
requests:
memory: 128Mi
Expand Down

0 comments on commit f78a248

Please sign in to comment.