catalog/stable/immich/7.1.7/templates/_microservices.tpl

55 lines
1.4 KiB
Smarty

{{- define "immich.microservices" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
enabled: true
type: Deployment
podSpec:
initContainers:
wait-server:
{{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
containers:
microservices:
enabled: true
primary: true
imageSelector: image
args: start-microservices.sh
securityContext:
capabilities:
disableS6Caps: true
envFrom:
- secretRef:
name: secret
- secretRef:
name: deps-secret
- configMapRef:
name: common-config
- configMapRef:
name: micro-config
probes:
readiness:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
ps -a | grep -v grep | grep -q microservices
liveness:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
ps -a | grep -v grep | grep -q microservices
startup:
enabled: true
type: exec
command:
- /bin/sh
- -c
- |
ps -a | grep -v grep | grep -q microservices
{{- end -}}