Skip to content

Commit

Permalink
Add healthcheck for immich database
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Mar 5, 2025
1 parent 9f1b7e1 commit 50d6e98
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions kubernetes/main/apps/media/immich/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,20 @@ spec:
name: flux-system
namespace: flux-system
dependsOn:
- name: cloudnative-pg-cluster
- name: cloudnative-pg
namespace: dbms
- name: external-secrets
namespace: external-secrets
healthChecks:
- apiVersion: postgresql.cnpg.io/v1
kind: Cluster
name: immich
namespace: *namespace
healthCheckExprs:
- apiVersion: postgresql.cnpg.io/v1
kind: Cluster
current: status.phase == 'Cluster in healthy state'
prune: true
wait: false
interval: 30m
timeout: 5m
---
Expand Down

0 comments on commit 50d6e98

Please sign in to comment.