mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
Pin authentik-postgres to the image CNPG filled in at creation (postgresql:17.4). Later operators default to PostgreSQL 18, and since 1.26 a higher major in the image triggers an offline in-place major upgrade. immich-postgres already pins its pgvecto.rs image. Turn on ENABLE_INSTANCE_MANAGER_INPLACE_UPDATES so the five operator hops (1.25 -> 1.30, one minor at a time as the docs recommend) swap the instance manager inside the running pods instead of restarting both single-instance databases each time.
32 lines
848 B
YAML
32 lines
848 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: cloudnative-pg
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
project: default
|
|
source:
|
|
chart: cloudnative-pg
|
|
repoURL: https://cloudnative-pg.github.io/charts
|
|
targetRevision: 0.23.2
|
|
helm:
|
|
values: |
|
|
config:
|
|
data:
|
|
# Swap the instance manager inside running pods on operator
|
|
# upgrades instead of restarting them. Both clusters have a
|
|
# single instance, so a restart means downtime.
|
|
ENABLE_INSTANCE_MANAGER_INPLACE_UPDATES: "true"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: cnpg-system
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|