mirror of
https://github.com/truenas/charts.git
synced 2026-11-25 23:24:00 +00:00
* initial commit * add some todo * extend config * remove typesense url * add microservices * add proxy and typesense * ML * fix configmap * fixup config * change range * one more * add some inits * ts dont need to wait for server * wait web * add redis * fix redis * wrong space * type * add redis service * conditional services * fix redis... * add caps * fix capabilities * fix service * add tests * fix conditional pods * fix upgrade_strategy * fix config * lint * whops * update strategy * make robust * cleaner * fix regex * Take a copy of the resources before we start doing modifications * regen commontgz * bump versions * add pullPolicy * regen common * bump version * bump * bump helm * regen common * Update library/ix-dev/community/immich/values.yaml * bump * update resources validation
58 lines
1.9 KiB
Smarty
58 lines
1.9 KiB
Smarty
{{- 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 -}}
|