Files
charts/library/ix-dev/community/immich/templates/_immich-proxy.tpl
T
Stavros Kois edde8c3839 NAS-122507 / 23.10 / Add immich to community train (#1271)
* 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
2023-07-05 18:42:37 +03:00

49 lines
1.5 KiB
Smarty

{{- define "immich.proxy.workload" -}}
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort -}}
{{- $webUrl := printf "http://%v-web:%v/robots.txt" $fullname .Values.immichNetwork.webPort }}
workload:
proxy:
enabled: true
type: Deployment
podSpec:
hostNetwork: false
containers:
proxy:
enabled: true
primary: true
imageSelector: proxyImage
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
readOnlyRootFilesystem: false
capabilities:
add:
- CHOWN
- SETUID
- SETGID
envFrom:
- configMapRef:
name: proxy-config
probes:
liveness:
enabled: true
type: http
path: /api/server-info/ping
port: 8080
readiness:
enabled: true
type: http
path: /api/server-info/ping
port: 8080
startup:
enabled: true
type: http
path: /api/server-info/ping
port: 8080
initContainers:
{{- include "immich.wait.init" (dict "url" $serverUrl) | indent 8 }}
{{- include "immich.wait.init" (dict "url" $webUrl) | indent 8 }}
{{- end -}}