diff --git a/charts/lemmy/templates/deployment-backend.yaml b/charts/lemmy/templates/deployment-backend.yaml index e4fbeb2..a8c45cf 100644 --- a/charts/lemmy/templates/deployment-backend.yaml +++ b/charts/lemmy/templates/deployment-backend.yaml @@ -69,18 +69,18 @@ spec: - name: http containerPort: 8536 protocol: TCP + {{- with .Values.backend.livenessProbe }} livenessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.backend.readinessProbe }} readinessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.backend.startupProbe }} startupProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.backend.resources | nindent 12 }} volumeMounts: diff --git a/charts/lemmy/templates/deployment-frontend.yaml b/charts/lemmy/templates/deployment-frontend.yaml index efee26f..a5142f2 100644 --- a/charts/lemmy/templates/deployment-frontend.yaml +++ b/charts/lemmy/templates/deployment-frontend.yaml @@ -60,14 +60,18 @@ spec: - name: http containerPort: 1234 protocol: TCP + {{- with .Values.frontend.livenessProbe }} livenessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.frontend.readinessProbe }} readinessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.frontend.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.frontend.resources | nindent 12 }} {{- with .Values.frontend.nodeSelector }} diff --git a/charts/lemmy/templates/deployment-pictrs.yaml b/charts/lemmy/templates/deployment-pictrs.yaml index 70046df..2f1622d 100644 --- a/charts/lemmy/templates/deployment-pictrs.yaml +++ b/charts/lemmy/templates/deployment-pictrs.yaml @@ -80,14 +80,18 @@ spec: - name: http containerPort: 8080 protocol: TCP + {{- with .Values.pictrs.livenessProbe }} livenessProbe: - httpGet: - path: /healthz - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.pictrs.readinessProbe }} readinessProbe: - httpGet: - path: /healthz - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.pictrs.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: data mountPath: /mnt/database diff --git a/charts/lemmy/templates/deployment-proxy.yaml b/charts/lemmy/templates/deployment-proxy.yaml index e5d862a..2db5ad3 100644 --- a/charts/lemmy/templates/deployment-proxy.yaml +++ b/charts/lemmy/templates/deployment-proxy.yaml @@ -45,14 +45,18 @@ spec: - name: http containerPort: 8536 protocol: TCP + {{- with .Values.proxy.livenessProbe }} livenessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.proxy.readinessProbe }} readinessProbe: - httpGet: - path: / - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.proxy.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.proxy.resources | nindent 12 }} volumeMounts: diff --git a/charts/lemmy/values.yaml b/charts/lemmy/values.yaml index 2ae202c..6f70f79 100644 --- a/charts/lemmy/values.yaml +++ b/charts/lemmy/values.yaml @@ -63,6 +63,21 @@ backend: strategy: type: RollingUpdate + livenessProbe: + httpGet: + path: / + port: http + + readinessProbe: + httpGet: + path: / + port: http + + startupProbe: + httpGet: + path: / + port: http + podAnnotations: {} podSecurityContext: {} @@ -112,6 +127,16 @@ frontend: # - secretRef: # name: my-extra-secrets + livenessProbe: + httpGet: + path: / + port: http + + readinessProbe: + httpGet: + path: / + port: http + podAnnotations: {} podSecurityContext: {} @@ -201,6 +226,21 @@ pictrs: # existingClaim: # storageClass: + livenessProbe: + httpGet: + path: /healthz + port: http + + readinessProbe: + httpGet: + path: /healthz + port: http + + startupProbe: + httpGet: + path: /healthz + port: http + podAnnotations: {} podSecurityContext: {} @@ -244,6 +284,16 @@ proxy: pullPolicy: Always tag: 1-alpine + livenessProbe: + httpGet: + path: / + port: http + + readinessProbe: + httpGet: + path: / + port: http + podAnnotations: {} podSecurityContext: {}