123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {{- define "immich.microservices.workload" -}}
- {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
- {{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
- workload:
- microservices:
- enabled: true
- type: Deployment
- podSpec:
- hostNetwork: false
- containers:
- microservices:
- enabled: true
- primary: true
- imageSelector: image
- securityContext:
- runAsUser: 0
- runAsGroup: 0
- runAsNonRoot: false
- readOnlyRootFilesystem: false
- args: start-microservices.sh
- envFrom:
- - secretRef:
- name: immich-creds
- - configMapRef:
- name: micro-config
- probes:
- liveness:
- enabled: true
- type: exec
- command:
- - /bin/sh
- - -c
- - |
- ps -a | grep -v grep | grep -q microservices
- readiness:
- 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
- initContainers:
- {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
- "secretName" "postgres-creds") | nindent 8 }}
- {{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
- "secretName" "redis-creds") | nindent 8 }}
- {{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
- {{- end -}}
|