chore(immich): Only pass secrets to containers that need them and mount files only where needed (#9697)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

Doing some env cleanup based on
https://github.com/immich-app/immich/pull/2814

- Moves services in values.yaml so references always resolve.
- Removes all media mounts from machinelearning, it uses http now.
- Removes Env Vars from containers that do not need them
- Removes secret/configmap mounts from containers that do not need them.
- Reduces added capabilities.
- Removes dead variables

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Stavros Kois
2023-06-20 23:11:23 +03:00
committed by GitHub
parent 1338b67038
commit 90199af33d
12 changed files with 153 additions and 141 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ name: immich
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/immich - https://github.com/truecharts/charts/tree/master/charts/stable/immich
- https://github.com/immich-app/immich - https://github.com/immich-app/immich
version: 7.0.16 version: 7.1.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
+11 -14
View File
@@ -38,28 +38,25 @@ questions:
type: int type: int
show_if: [["disable_reverse_geocoding", "=", false]] show_if: [["disable_reverse_geocoding", "=", false]]
default: 3 default: 3
- variable: mapbox_enable
label: Enable MapBox
schema:
type: boolean
default: false
- variable: mapbox_key
label: MaxBox Key
schema:
type: string
private: true
show_if: [["maxbox_enable", "=", false]]
default: ""
- variable: log_level - variable: log_level
label: Log Level label: Log Level
schema: schema:
type: string type: string
default: simple default: log
enum: enum:
- value: log
description: log
- value: simple - value: simple
description: simple description: simple (Switch to log ASAP)
- value: warn
description: warn
- value: error
description: error
- value: verbose - value: verbose
description: verbose description: verbose
- value: debug
description: debug
- variable: enable_ml - variable: enable_ml
label: Enable Machine Learning Container label: Enable Machine Learning Container
schema: schema:
+26 -27
View File
@@ -1,10 +1,8 @@
{{- define "immich.config" -}} {{- define "immich.config" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} {{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $secretName := printf "%s-secret" $fname -}} {{- $secretName := printf "%s-secret" $fname -}}
{{- $jwtSecret := randAlphaNum 32 -}}
{{- $typesenseKey := randAlphaNum 32 -}} {{- $typesenseKey := randAlphaNum 32 -}}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
{{- $jwtSecret = index .data "JWT_SECRET" | b64dec -}}
{{- $typesenseKey = index .data "TYPESENSE_API_KEY" | b64dec -}} {{- $typesenseKey = index .data "TYPESENSE_API_KEY" | b64dec -}}
{{- end }} {{- end }}
@@ -13,31 +11,42 @@ configmap:
enabled: true enabled: true
data: data:
PORT: {{ .Values.service.web.ports.web.port | quote }} PORT: {{ .Values.service.web.ports.web.port | quote }}
NODE_ENV: production
IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }}
PUBLIC_IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }}
{{- with .Values.immich.public_login_page_message }}
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . }}
{{- end }}
server-config: server-config:
enabled: true enabled: true
data: data:
{{/* User Defined */}}
DISABLE_REVERSE_GEOCODING: {{ .Values.immich.disable_reverse_geocoding | quote }}
REVERSE_GEOCODING_PRECISION: {{ .Values.immich.reverse_geocoding_precision | quote }}
ENABLE_MAPBOX: {{ .Values.immich.mapbox_enable | quote }}
SERVER_PORT: {{ .Values.service.server.ports.server.port | quote }} SERVER_PORT: {{ .Values.service.server.ports.server.port | quote }}
micro-config: micro-config:
enabled: true enabled: true
data: data:
MICROSERVICES_PORT: {{ .Values.service.microservices.ports.microservices.port | quote }} MICROSERVICES_PORT: {{ .Values.service.microservices.ports.microservices.port | quote }}
DISABLE_REVERSE_GEOCODING: {{ .Values.immich.disable_reverse_geocoding | quote }}
REVERSE_GEOCODING_PRECISION: {{ .Values.immich.reverse_geocoding_precision | quote }}
REVERSE_GEOCODING_DUMP_DIRECTORY: {{ .Values.persistence.microcache.targetSelector.microservices.microservices.mountPath }} REVERSE_GEOCODING_DUMP_DIRECTORY: {{ .Values.persistence.microcache.targetSelector.microservices.microservices.mountPath }}
{{- if .Values.immich.enable_ml }} {{- if .Values.immich.enable_ml }}
ml-config: ml-config:
enabled: true enabled: true
data: data:
NODE_ENV: production
MACHINE_LEARNING_PORT: {{ .Values.service.machinelearning.ports.machinelearning.port | quote }} MACHINE_LEARNING_PORT: {{ .Values.service.machinelearning.ports.machinelearning.port | quote }}
MACHINE_LEARNING_CACHE_FOLDER: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }}
TRANSFORMERS_CACHE: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }} TRANSFORMERS_CACHE: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }}
{{- end }} {{- end }}
{{/* Server and Microservices */}}
common-config: common-config:
enabled: true enabled: true
data: data:
IMMICH_WEB_URL: {{ printf "http://%v-web:%v" $fname .Values.service.web.ports.web.port }} NODE_ENV: production
IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} LOG_LEVEL: {{ .Values.immich.log_level }}
{{- if .Values.immich.enable_ml }} {{- if .Values.immich.enable_ml }}
IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%v-machinelearning:%v" $fname .Values.service.machinelearning.ports.machinelearning.port }} IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%v-machinelearning:%v" $fname .Values.service.machinelearning.ports.machinelearning.port }}
{{- else }} {{- else }}
@@ -45,24 +54,16 @@ configmap:
{{- end }} {{- end }}
TYPESENSE_ENABLED: {{ .Values.immich.enable_typesense | quote }} TYPESENSE_ENABLED: {{ .Values.immich.enable_typesense | quote }}
{{- if .Values.immich.enable_typesense }} {{- if .Values.immich.enable_typesense }}
TYPESENSE_URL: {{ printf "http://%v-typesense:%v" $fname .Values.service.typesense.ports.typesense.port }}
TYPESENSE_PROTOCOL: http TYPESENSE_PROTOCOL: http
TYPESENSE_HOST: {{ printf "%v-typesense" $fname }} TYPESENSE_HOST: {{ printf "%v-typesense" $fname }}
TYPESENSE_PORT: {{ .Values.service.typesense.ports.typesense.port | quote }} TYPESENSE_PORT: {{ .Values.service.typesense.ports.typesense.port | quote }}
{{- end }} {{- end }}
{{/*
Its unclear where this URL is being used, but poking in their code, seems to be used internally? proxy-config:
Its set to the value of IMMICH_SERVER_URL on their compose. If something doesnt work remotely, enabled: true
This is the place to start looking data:
https://github.com/immich-app/immich/blob/b5d75e20167b92de12cc50a816da214779cb0807/web/src/api/api.ts#L55 IMMICH_WEB_URL: {{ printf "http://%v-web:%v" $fname .Values.service.web.ports.web.port }}
*/}} IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }}
PUBLIC_IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }}
NODE_ENV: production
{{/* User Defined */}}
{{- with .Values.immich.public_login_page_message }}
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . }}
{{- end }}
LOG_LEVEL: {{ .Values.immich.log_level }}
secret: secret:
typesense-secret: typesense-secret:
@@ -71,15 +72,13 @@ secret:
{{/* Secret Key */}} {{/* Secret Key */}}
TYPESENSE_API_KEY: {{ $typesenseKey }} TYPESENSE_API_KEY: {{ $typesenseKey }}
TYPESENSE_DATA_DIR: {{ .Values.persistence.typesense.targetSelector.typesense.typesense.mountPath }} TYPESENSE_DATA_DIR: {{ .Values.persistence.typesense.targetSelector.typesense.typesense.mountPath }}
secret: secret:
enabled: true enabled: true
data: data:
{{/* Secret Key */}}
JWT_SECRET: {{ $jwtSecret }}
TYPESENSE_API_KEY: {{ $typesenseKey }} TYPESENSE_API_KEY: {{ $typesenseKey }}
{{- with .Values.immich.mapbox_key }}
MAPBOX_KEY: {{ . }} {{/* Server and Microservices */}}
{{- end }}
deps-secret: deps-secret:
enabled: true enabled: true
data: data:
@@ -1,27 +1,25 @@
{{/* Define the machinelearning container */}} {{/* Define the machinelearning container */}}
{{- define "immich.machinelearning" -}} {{- define "immich.machinelearning" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
enabled: true enabled: true
type: Deployment type: Deployment
podSpec: podSpec:
initContainers: initContainers:
wait-server: wait-server:
{{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} {{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
containers: containers:
machinelearning: machinelearning:
enabled: true enabled: true
primary: true primary: true
imageSelector: mlImage imageSelector: mlImage
securityContext:
capabilities:
disableS6Caps: true
envFrom: envFrom:
- configMapRef:
name: common-config
- configMapRef:
name: server-config
- configMapRef: - configMapRef:
name: ml-config name: ml-config
- secretRef:
name: deps-secret
- secretRef:
name: secret
probes: probes:
readiness: readiness:
enabled: true enabled: true
@@ -39,16 +37,3 @@ podSpec:
path: /ping path: /ping
port: {{ .Values.service.machinelearning.ports.machinelearning.port }} port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
{{- end -}} {{- end -}}
{{- define "immich.machinelearning.service" -}}
enabled: true
type: ClusterIP
targetSelector: machinelearning
ports:
machinelearning:
enabled: true
primary: true
port: 10003
protocol: http
targetSelector: machinelearning
{{- end -}}
@@ -1,16 +1,22 @@
{{- define "immich.microservices" -}} {{- define "immich.microservices" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
enabled: true enabled: true
type: Deployment type: Deployment
podSpec: podSpec:
initContainers: initContainers:
wait-server: wait-server:
{{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} {{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
containers: containers:
microservices: microservices:
enabled: true enabled: true
primary: true primary: true
imageSelector: image imageSelector: image
args: start-microservices.sh args: start-microservices.sh
securityContext:
capabilities:
disableS6Caps: true
envFrom: envFrom:
- secretRef: - secretRef:
name: secret name: secret
@@ -18,8 +24,6 @@ podSpec:
name: deps-secret name: deps-secret
- configMapRef: - configMapRef:
name: common-config name: common-config
- configMapRef:
name: server-config
- configMapRef: - configMapRef:
name: micro-config name: micro-config
probes: probes:
@@ -48,16 +52,3 @@ podSpec:
- | - |
ps -a | grep -v grep | grep -q microservices ps -a | grep -v grep | grep -q microservices
{{- end -}} {{- end -}}
{{- define "immich.microservices.service" -}}
enabled: true
type: ClusterIP
targetSelector: microservices
ports:
microservices:
enabled: true
primary: true
port: 10004
protocol: http
targetSelector: microservices
{{- end -}}
+15 -2
View File
@@ -1,18 +1,31 @@
{{- define "immich.proxy" -}} {{- define "immich.proxy" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
{{- $webUrl := printf "http://%v-web:%v/robots.txt" $fname .Values.service.web.ports.web.port }}
enabled: true enabled: true
type: Deployment type: Deployment
podSpec: podSpec:
initContainers: initContainers:
wait-server: wait-server:
{{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} {{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
{{/* Wait for web, otherwise nginx will fail to find host */}}
{{- include "immich.wait" (dict "url" $webUrl) | nindent 6 }}
containers: containers:
proxy: proxy:
enabled: true enabled: true
primary: true primary: true
imageSelector: proxyImage imageSelector: proxyImage
securityContext:
capabilities:
disableS6Caps: true
add:
- CHOWN
- SETUID
- SETGID
envFrom: envFrom:
- configMapRef: - configMapRef:
name: common-config name: proxy-config
probes: probes:
readiness: readiness:
enabled: true enabled: true
@@ -3,6 +3,9 @@ enabled: true
primary: true primary: true
imageSelector: image imageSelector: image
args: start-server.sh args: start-server.sh
securityContext:
capabilities:
disableS6Caps: true
envFrom: envFrom:
- configMapRef: - configMapRef:
name: server-config name: server-config
+3 -13
View File
@@ -8,6 +8,9 @@ podSpec:
enabled: true enabled: true
primary: true primary: true
imageSelector: typesenseImage imageSelector: typesenseImage
securityContext:
capabilities:
disableS6Caps: true
envFrom: envFrom:
- secretRef: - secretRef:
name: typesense-secret name: typesense-secret
@@ -31,16 +34,3 @@ podSpec:
path: /health path: /health
port: {{ .Values.service.typesense.ports.typesense.port }} port: {{ .Values.service.typesense.ports.typesense.port }}
{{- end -}} {{- end -}}
{{- define "immich.typesense.service" -}}
enabled: true
type: ClusterIP
targetSelector: typesense
ports:
typesense:
enabled: true
primary: true
port: 10002
protocol: http
targetSelector: typesense
{{- end -}}
+5 -9
View File
@@ -1,20 +1,16 @@
{{- define "immich.wait" -}} {{- define "immich.wait" -}}
{{- $path := .path | default "" }} {{- $url := .url }}
{{- $variable := .variable }}
enabled: true enabled: true
type: init type: init
imageSelector: alpineImage imageSelector: alpineImage
envFrom:
- configMapRef:
name: common-config
command: command:
- /bin/ash - /bin/ash
- -c - -c
- | - |
echo "Pinging [${{ $variable }}/{{ $path }}] until it is ready..." echo "Pinging [{{ $url }}] until it is ready..."
until wget --spider --quiet "${{ $variable }}/{{ $path }}"; do until wget --spider --quiet "{{ $url }}"; do
echo "Waiting for [${{ $variable }}/{{ $path }}] to be ready..." echo "Waiting for [{{ $url }}] to be ready..."
sleep 2 sleep 2
done done
echo "URL [${{ $variable }}/{{ $path }}] is ready!" echo "URL [{{ $url }}] is ready!"
{{- end -}} {{- end -}}
+10 -18
View File
@@ -1,23 +1,28 @@
{{/* Define the web container */}} {{/* Define the web container */}}
{{- define "immich.web" -}} {{- define "immich.web" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
enabled: true enabled: true
type: Deployment type: Deployment
podSpec: podSpec:
initContainers: initContainers:
wait-server: wait-server:
{{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} {{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
containers: containers:
web: web:
enabled: true enabled: true
primary: true primary: true
imageSelector: webImage imageSelector: webImage
securityContext:
capabilities:
disableS6Caps: true
add:
- SETUID
- SETGID
envFrom: envFrom:
- configMapRef:
name: common-config
- configMapRef: - configMapRef:
name: web-config name: web-config
- secretRef:
name: deps-secret
probes: probes:
readiness: readiness:
enabled: true enabled: true
@@ -35,16 +40,3 @@ podSpec:
path: /robots.txt path: /robots.txt
port: {{ .Values.service.web.ports.web.port }} port: {{ .Values.service.web.ports.web.port }}
{{- end -}} {{- end -}}
{{- define "immich.web.service" -}}
enabled: true
type: ClusterIP
targetSelector: web
ports:
web:
enabled: true
primary: true
port: 10000
protocol: http
targetSelector: web
{{- end -}}
+20 -5
View File
@@ -1,27 +1,42 @@
{{/* Make sure all variables are set properly */}} {{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }} {{- include "tc.v1.common.loader.init" . }}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{/* Render Proxy Workload */}}
{{- $_ := set .Values.workload "proxy" (include "immich.proxy" . | fromYaml) -}} {{- $_ := set .Values.workload "proxy" (include "immich.proxy" . | fromYaml) -}}
{{- $_ := set .Values.workload.main.podSpec.containers "main" (include "immich.server" . | fromYaml) -}} {{- $_ := set .Values.workload.main.podSpec.containers "main" (include "immich.server" . | fromYaml) -}}
{{- if .Values.immich.enable_typesense -}} {{- if .Values.immich.enable_typesense -}}
{{- $_ := set .Values.workload.main.podSpec.initContainers "wait-typesense" (include "immich.wait" (dict "variable" "TYPESENSE_URL" "path" "health") | fromYaml) -}} {{/* Append init container to server, to make sure typesense is ready before starting */}}
{{- $url := printf "http://%v-typesense:%v/health" $fname .Values.service.typesense.ports.typesense.port -}}
{{- $_ := set .Values.workload.main.podSpec.initContainers "wait-typesense" (include "immich.wait" (dict "url" $url) | fromYaml) -}}
{{- end -}} {{- end -}}
{{- $_ := set .Values.service "web" (include "immich.web.service" . | fromYaml) -}} {{/* Render Web Workload */}}
{{- $_ := set .Values.workload "web" (include "immich.web" . | fromYaml) -}} {{- $_ := set .Values.workload "web" (include "immich.web" . | fromYaml) -}}
{{- $_ := set .Values.service "microservices" (include "immich.microservices.service" . | fromYaml) -}} {{/* Render Microservices Workload */}}
{{- $_ := set .Values.workload "microservices" (include "immich.microservices" . | fromYaml) -}} {{- $_ := set .Values.workload "microservices" (include "immich.microservices" . | fromYaml) -}}
{{- if .Values.immich.enable_ml -}} {{- if .Values.immich.enable_ml -}}
{{- $_ := set .Values.service "machinelearning" (include "immich.machinelearning.service" . | fromYaml) -}} {{/* Enable Machine Learning Service */}}
{{- $_ := set .Values.service.machinelearning "enabled" true -}}
{{/* Render Machine Learning Workload */}}
{{- $_ := set .Values.workload "machinelearning" (include "immich.machinelearning" . | fromYaml) -}} {{- $_ := set .Values.workload "machinelearning" (include "immich.machinelearning" . | fromYaml) -}}
{{- else -}}
{{/* Disable Machine Learning Service */}}
{{- $_ := set .Values.service.machinelearning "enabled" false -}}
{{- end -}} {{- end -}}
{{- if .Values.immich.enable_typesense -}} {{- if .Values.immich.enable_typesense -}}
{{- $_ := set .Values.service "typesense" (include "immich.typesense.service" . | fromYaml) -}} {{/* Enable Typesense Service */}}
{{- $_ := set .Values.service.typesense "enabled" true -}}
{{/* Render Typesense Workload */}}
{{- $_ := set .Values.workload "typesense" (include "immich.typesense" . | fromYaml) -}} {{- $_ := set .Values.workload "typesense" (include "immich.typesense" . | fromYaml) -}}
{{- else -}}
{{/* Disable Typesense Service */}}
{{- $_ := set .Values.service.typesense "enabled" false -}}
{{- end -}} {{- end -}}
{{/* Render configuration for immich {{/* Render configuration for immich
+45 -14
View File
@@ -32,10 +32,7 @@ immich:
public_login_page_message: Immich public_login_page_message: Immich
disable_reverse_geocoding: false disable_reverse_geocoding: false
reverse_geocoding_precision: 3 reverse_geocoding_precision: 3
# simple | verbose log_level: log
log_level: simple
mapbox_enable: false
mapbox_key: ""
service: service:
main: main:
@@ -59,6 +56,50 @@ service:
port: 10001 port: 10001
protocol: http protocol: http
targetSelector: main targetSelector: main
web:
enabled: true
type: ClusterIP
targetSelector: web
ports:
web:
enabled: true
primary: true
port: 10000
protocol: http
targetSelector: web
microservices:
enabled: true
type: ClusterIP
targetSelector: microservices
ports:
microservices:
enabled: true
primary: true
port: 10004
protocol: http
targetSelector: microservices
machinelearning:
enabled: true
type: ClusterIP
targetSelector: machinelearning
ports:
machinelearning:
enabled: true
primary: true
port: 10003
protocol: http
targetSelector: machinelearning
typesense:
enabled: true
type: ClusterIP
targetSelector: typesense
ports:
typesense:
enabled: true
primary: true
port: 10002
protocol: http
targetSelector: typesense
persistence: persistence:
mlcache: mlcache:
@@ -91,8 +132,6 @@ persistence:
main: {} main: {}
microservices: microservices:
microservices: {} microservices: {}
machinelearning:
machinelearning: {}
uploads: uploads:
enabled: true enabled: true
mountPath: /usr/src/app/upload/upload mountPath: /usr/src/app/upload/upload
@@ -102,8 +141,6 @@ persistence:
main: {} main: {}
microservices: microservices:
microservices: {} microservices: {}
machinelearning:
machinelearning: {}
thumbs: thumbs:
enabled: true enabled: true
mountPath: /usr/src/app/upload/thumbs mountPath: /usr/src/app/upload/thumbs
@@ -113,8 +150,6 @@ persistence:
main: {} main: {}
microservices: microservices:
microservices: {} microservices: {}
machinelearning:
machinelearning: {}
profile: profile:
enabled: true enabled: true
mountPath: /usr/src/app/upload/profile mountPath: /usr/src/app/upload/profile
@@ -124,8 +159,6 @@ persistence:
main: {} main: {}
microservices: microservices:
microservices: {} microservices: {}
machinelearning:
machinelearning: {}
video: video:
enabled: true enabled: true
mountPath: /usr/src/app/upload/encoded-video mountPath: /usr/src/app/upload/encoded-video
@@ -135,8 +168,6 @@ persistence:
main: {} main: {}
microservices: microservices:
microservices: {} microservices: {}
machinelearning:
machinelearning: {}
cnpg: cnpg:
main: main: