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