diff --git a/manifests/authentik/authentik-proxy-outpost.yaml b/manifests/authentik/authentik-proxy-outpost.yaml index 326f50a..3f2c3a3 100644 --- a/manifests/authentik/authentik-proxy-outpost.yaml +++ b/manifests/authentik/authentik-proxy-outpost.yaml @@ -41,6 +41,23 @@ spec: name: http - containerPort: 9443 name: https + readinessProbe: + tcpSocket: + port: 9000 + initialDelaySeconds: 10 + periodSeconds: 15 + livenessProbe: + tcpSocket: + port: 9000 + initialDelaySeconds: 20 + periodSeconds: 30 + resources: + requests: + cpu: 20m + memory: 64Mi + limits: + cpu: 200m + memory: 256Mi --- apiVersion: v1 kind: Service diff --git a/manifests/core/ca-installer/ca-installer.yaml b/manifests/core/ca-installer/ca-installer.yaml index 0baec78..60a328b 100644 --- a/manifests/core/ca-installer/ca-installer.yaml +++ b/manifests/core/ca-installer/ca-installer.yaml @@ -63,6 +63,25 @@ spec: image: nginx:alpine ports: - containerPort: 80 + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 10 + periodSeconds: 30 + resources: + requests: + cpu: 10m + memory: 32Mi + limits: + cpu: 100m + memory: 64Mi volumeMounts: - name: web-files mountPath: /usr/share/nginx/html/index.html diff --git a/manifests/core/dashy.yaml b/manifests/core/dashy.yaml index 8ca5227..546bf06 100644 --- a/manifests/core/dashy.yaml +++ b/manifests/core/dashy.yaml @@ -43,6 +43,25 @@ spec: image: lissy93/dashy:latest ports: - containerPort: 8080 + readinessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 10 + livenessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 20 + periodSeconds: 30 + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + cpu: 200m + memory: 256Mi volumeMounts: - name: config mountPath: /app/user-data/conf.yml diff --git a/manifests/core/glances.yaml b/manifests/core/glances.yaml index d1cb3f9..0dd0ad8 100644 --- a/manifests/core/glances.yaml +++ b/manifests/core/glances.yaml @@ -34,6 +34,23 @@ spec: value: "-w" securityContext: privileged: true + readinessProbe: + tcpSocket: + port: 61208 + initialDelaySeconds: 10 + periodSeconds: 15 + livenessProbe: + tcpSocket: + port: 61208 + initialDelaySeconds: 20 + periodSeconds: 30 + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + cpu: 300m + memory: 256Mi volumeMounts: - name: host-proc mountPath: /proc diff --git a/manifests/media/immich.yaml b/manifests/media/immich.yaml index ba1eaea..3243394 100644 --- a/manifests/media/immich.yaml +++ b/manifests/media/immich.yaml @@ -88,6 +88,23 @@ spec: value: "--data-checksums" - name: PGDATA value: /var/lib/postgresql/data/pgdata + readinessProbe: + tcpSocket: + port: 5432 + initialDelaySeconds: 10 + periodSeconds: 15 + livenessProbe: + tcpSocket: + port: 5432 + initialDelaySeconds: 20 + periodSeconds: 30 + resources: + requests: + cpu: 100m + memory: 512Mi + limits: + cpu: 1000m + memory: 1Gi volumeMounts: - name: data mountPath: /var/lib/postgresql/data @@ -129,6 +146,23 @@ spec: image: docker.io/redis:6.2-alpine ports: - containerPort: 6379 + readinessProbe: + tcpSocket: + port: 6379 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + tcpSocket: + port: 6379 + initialDelaySeconds: 10 + periodSeconds: 30 + resources: + requests: + cpu: 10m + memory: 32Mi + limits: + cpu: 200m + memory: 128Mi volumeMounts: - name: data mountPath: /data @@ -189,6 +223,23 @@ spec: value: http://immich-machine-learning:3003 - name: TZ value: Asia/Tokyo + readinessProbe: + tcpSocket: + port: 2283 + initialDelaySeconds: 15 + periodSeconds: 15 + livenessProbe: + tcpSocket: + port: 2283 + initialDelaySeconds: 30 + periodSeconds: 30 + resources: + requests: + cpu: 200m + memory: 2Gi + limits: + cpu: 2000m + memory: 4Gi volumeMounts: - name: library mountPath: /usr/src/app/upload @@ -244,6 +295,23 @@ spec: image: ghcr.io/immich-app/immich-machine-learning:v2.7.5 ports: - containerPort: 3003 + readinessProbe: + tcpSocket: + port: 3003 + initialDelaySeconds: 15 + periodSeconds: 15 + livenessProbe: + tcpSocket: + port: 3003 + initialDelaySeconds: 30 + periodSeconds: 30 + resources: + requests: + cpu: 200m + memory: 512Mi + limits: + cpu: 2000m + memory: 2Gi volumeMounts: - name: cache mountPath: /cache diff --git a/manifests/media/jdownloader.yaml b/manifests/media/jdownloader.yaml index 2081944..5612597 100644 --- a/manifests/media/jdownloader.yaml +++ b/manifests/media/jdownloader.yaml @@ -82,6 +82,25 @@ spec: value: "1000" - name: TZ value: "Asia/Tokyo" + readinessProbe: + httpGet: + path: / + port: 5800 + initialDelaySeconds: 15 + periodSeconds: 15 + livenessProbe: + httpGet: + path: / + port: 5800 + initialDelaySeconds: 30 + periodSeconds: 30 + resources: + requests: + cpu: 200m + memory: 512Mi + limits: + cpu: 1000m + memory: 1Gi volumeMounts: - name: config mountPath: /config @@ -91,6 +110,13 @@ spec: image: python:3.12-alpine ports: - containerPort: 9666 + resources: + requests: + cpu: 5m + memory: 16Mi + limits: + cpu: 50m + memory: 64Mi volumeMounts: - name: config mountPath: /config diff --git a/manifests/media/jellyfin.yaml b/manifests/media/jellyfin.yaml index 9fffef0..e8d82ca 100644 --- a/manifests/media/jellyfin.yaml +++ b/manifests/media/jellyfin.yaml @@ -93,6 +93,25 @@ spec: value: https://jellyfin.home.arpa - name: LIBVA_DRIVER_NAME value: radeonsi + readinessProbe: + httpGet: + path: /health + port: 8096 + initialDelaySeconds: 15 + periodSeconds: 15 + livenessProbe: + httpGet: + path: /health + port: 8096 + initialDelaySeconds: 30 + periodSeconds: 30 + resources: + requests: + cpu: 200m + memory: 1Gi + limits: + cpu: 2000m + memory: 4Gi volumeMounts: - name: config mountPath: /config diff --git a/manifests/media/qbittorrent.yaml b/manifests/media/qbittorrent.yaml index fc760eb..a4662ff 100644 --- a/manifests/media/qbittorrent.yaml +++ b/manifests/media/qbittorrent.yaml @@ -103,6 +103,25 @@ spec: value: "Asia/Tokyo" - name: WEBUI_PORT value: "8080" + readinessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 15 + periodSeconds: 15 + livenessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 30 + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + cpu: 500m + memory: 512Mi volumeMounts: - name: config mountPath: /config @@ -112,6 +131,13 @@ spec: image: python:3-alpine ports: - containerPort: 8888 + resources: + requests: + cpu: 5m + memory: 16Mi + limits: + cpu: 50m + memory: 64Mi command: - python3 - -c