1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- {{- 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
- command: /bin/sh
- args:
- - -c
- - /usr/src/app/start-microservices.sh
- envFrom:
- - secretRef:
- name: immich-creds
- - configMapRef:
- name: micro-config
- probes:
- liveness:
- enabled: true
- type: tcp
- port: {{ .Values.immichNetwork.microservicesPort }}
- readiness:
- enabled: true
- type: tcp
- port: {{ .Values.immichNetwork.microservicesPort }}
- startup:
- enabled: true
- type: tcp
- port: {{ .Values.immichNetwork.microservicesPort }}
- 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 }}
- {{- with .Values.immichGPU }}
- scaleGPU:
- {{- range $key, $value := . }}
- - gpu:
- {{ $key }}: {{ $value }}
- targetSelector:
- microservices:
- - microservices
- {{- end -}}
- {{- end -}}
- {{- end -}}
|