Skip to content

Commit

Permalink
Enable Helm drift detection
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Apr 10, 2024
1 parent dd267ec commit 0fb7ac9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions deploy/apps/podinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fb7ac9

Please sign in to comment.