Files
charts/library/ix-dev/community/immich/templates/_service.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

106 lines
2.2 KiB
Smarty

{{- define "immich.service" -}}
service:
proxy:
enabled: true
primary: true
type: NodePort
targetSelector: proxy
ports:
proxy:
enabled: true
primary: true
port: {{ .Values.immichNetwork.webuiPort }}
nodePort: {{ .Values.immichNetwork.webuiPort }}
protocol: http
targetPort: 8080
targetSelector: proxy
server:
enabled: true
type: ClusterIP
targetSelector: server
ports:
server:
enabled: true
primary: true
port: {{ .Values.immichNetwork.serverPort }}
protocol: http
targetSelector: server
web:
enabled: true
type: ClusterIP
targetSelector: web
ports:
web:
enabled: true
primary: true
port: {{ .Values.immichNetwork.webPort }}
protocol: http
targetSelector: web
microservices:
enabled: true
type: ClusterIP
targetSelector: microservices
ports:
microservices:
enabled: true
primary: true
port: {{ .Values.immichNetwork.microservicesPort }}
protocol: http
targetSelector: microservices
{{- if .Values.immichConfig.enableML }}
machinelearning:
enabled: true
type: ClusterIP
targetSelector: machinelearning
ports:
machinelearning:
enabled: true
primary: true
port: {{ .Values.immichNetwork.machinelearningPort }}
protocol: http
targetSelector: machinelearning
{{- end -}}
{{- if .Values.immichConfig.enableTypesense }}
typesense:
enabled: true
type: ClusterIP
targetSelector: typesense
ports:
typesense:
enabled: true
primary: true
port: {{ .Values.immichNetwork.typesensePort }}
protocol: http
targetSelector: typesense
{{- end }}
redis:
enabled: true
type: ClusterIP
targetSelector: redis
ports:
redis:
enabled: true
primary: true
port: 6379
targetPort: 6379
targetSelector: redis
postgres:
enabled: true
type: ClusterIP
targetSelector: postgres
ports:
postgres:
enabled: true
primary: true
port: 5432
targetPort: 5432
targetSelector: postgres
{{- end -}}