mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Enable Helm drift detection
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
dd267ecc49
commit
0fb7ac95c0
2 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue