--- apiVersion: apps/v1 kind: Deployment metadata: name: immich-server namespace: immich spec: replicas: 1 selector: matchLabels: app: immich component: server template: metadata: labels: app: immich component: server spec: containers: - name: server image: ghcr.io/immich-app/immich-server:kustomized ports: - name: http containerPort: 2283 env: - name: TZ value: "America/Los_Angeles" - name: DB_HOSTNAME value: "immich-pg-rw.databases.svc.cluster.local" - name: DB_PORT value: "5432" - name: DB_DATABASE_NAME value: "immich" - name: DB_USERNAME value: "immich" - name: DB_PASSWORD valueFrom: secretKeyRef: name: immich-db key: password - name: REDIS_HOSTNAME value: immich-valkey - name: IMMICH_MACHINE_LEARNING_URL value: "http://immich-machine-learning:3003" volumeMounts: - name: library mountPath: /usr/src/app/upload livenessProbe: httpGet: path: /api/server/ping port: 2283 initialDelaySeconds: 30 periodSeconds: 30 timeoutSeconds: 5 readinessProbe: httpGet: path: /api/server/ping port: 2283 initialDelaySeconds: 15 periodSeconds: 10 timeoutSeconds: 5 resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "2Gi" volumes: - name: library persistentVolumeClaim: claimName: immich-library