From 3a00f8c6119799ad6ecc7843e544bb96baee8d01 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Wed, 22 Nov 2023 15:36:01 -0500 Subject: [PATCH] tweaks --- .../templates/immich/config-shared-envs.yaml | 3 --- k8s/apps/photos/values.yaml | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/k8s/apps/photos/templates/immich/config-shared-envs.yaml b/k8s/apps/photos/templates/immich/config-shared-envs.yaml index 8a73954..84e4a44 100644 --- a/k8s/apps/photos/templates/immich/config-shared-envs.yaml +++ b/k8s/apps/photos/templates/immich/config-shared-envs.yaml @@ -13,9 +13,6 @@ data: SERVER_PORT: "{{ $.Values.immich.apps.server.port }}" MICROSERVICES_PORT: "{{ $.Values.immich.apps.microservices.port }}" MACHINE_LEARNING_PORT: "{{ $.Values.immich.apps.machineLearning.port }}" - MACHINE_LEARNING_HOST: immich-machinelearning.{{ $.Release.Namespace }}.svc.cluster.local - IMMICH_MACHINE_LEARNING_URL: "http://immich-machinelearning.{{ $.Release.Namespace }}.svc.cluster.local:{{ $.Values.immich.apps.machineLearning.port }}" - IMMICH_SERVER_URL: "http://immich-server.{{ $.Release.Namespace }}.svc.cluster.local:{{ $.Values.immich.apps.server.port }}" # db & redis REDIS_HOSTNAME: "immich-redis-headless.{{ $.Release.Namespace }}.svc.cluster.local" # typesense diff --git a/k8s/apps/photos/values.yaml b/k8s/apps/photos/values.yaml index a557594..237c72c 100644 --- a/k8s/apps/photos/values.yaml +++ b/k8s/apps/photos/values.yaml @@ -18,6 +18,7 @@ immich: replicas: 1 port: 80 image: ghcr.io/immich-app/immich-server + command: [ "start.sh", "immich" ] livenessProbe: failureThreshold: 3 httpGet: @@ -53,12 +54,18 @@ immich: storage: 5Gi requests: storage: 5Gi + startupProbe: + failureThreshold: 30 + initialDelaySeconds: 0 + periodSeconds: 5 + tcpSocket: + port: 80 + timeoutSeconds: 1 livenessProbe: + tcpSocket: + port: 80 failureThreshold: 3 - httpGet: - path: /server-info/ping - port: http - initialDelaySeconds: 5 + initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 1 readinessProbe: @@ -66,7 +73,7 @@ immich: httpGet: path: /server-info/ping port: http - initialDelaySeconds: 5 + initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 1 machineLearning: