Enable Helm drift detection

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2024-04-10 19:53:50 +03:00
parent dd267ecc49
commit 0fb7ac95c0
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
2 changed files with 12 additions and 0 deletions

View file

@ -141,6 +141,12 @@ ingress-nginx 4.10.0 False True
podinfo 6.6.2 False True
```
> [!NOTE]
> Note that Flux detects changes made directly in-cluster on the objects managed
> by a HelmRelease and automatically [corrects the drift](https://fluxcd.io/flux/components/helm/helmreleases/#drift-detection).
> During an incident or for debugging purposes, you can manually suspend the reconciliation
> of a HelmRelease with `flux suspend hr <name> -n <namespace>`.
## Customize the workloads
Assuming you want to ship workloads to the production cluster with a different configuration,

View file

@ -23,6 +23,12 @@ spec:
kind: HelmRepository
name: podinfo
interval: 50m
driftDetection:
mode: enabled
ignore:
- paths: ["/spec/replicas"]
target:
kind: Deployment
install:
remediation:
retries: 3