lemmy: Expose probe configuration values

Fixes #46 - but not the underlying issue with limited migration support
This commit is contained in:
Alexander Olofsson 2023-07-30 22:50:09 +02:00
parent e37788e4ff
commit dc3118d07f
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
5 changed files with 89 additions and 27 deletions

View file

@ -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:

View file

@ -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 }}

View file

@ -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

View file

@ -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:

View file

@ -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: {}