clickhouse-operator
clickhouse-operator copied to clipboard
deletion of PVC when PV size altered with ArgoCD with prune enabled
We had recently introduced a K8s Job for DB schema migrations and prune option enabled in ArgoCD.
It worked fine for sometime. However in some case of CHI PVC size change, we noticed release and deletion of PVCs - even with Retain policy at CHI manifest.
We have reverted back prune option to disabled for now.
Also, noticed the PostSync jobs were created before all of the three shards were created/updated.
@prashant-shahi , consider adding following configuration snippet:
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseOperatorConfiguration"
metadata:
name: "exclude-argocd-labels"
spec:
label:
exclude:
- argocd.argoproj.io/instance
It require operator restart. This is an instructions to not propagate argocd label to downstream resources. That should sure ArgoCD will not touch resources managed by operator