flux-system kustomizations deleted #5472
-
|
Hey guys, We were using flux version 2.5.0 What we're doing is telling flux via a kustomization to look into the another repository for the Here's what it looks like. # controller.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: descheduler
namespace: descheduler
spec:
interval: 1m
path: ./descheduler/
prune: true
sourceRef:
kind: GitRepository
name: centralised-services
namespace: flux-system
targetNamespace: deschedulerThis is the ---
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: descheduler
namespace: descheduler
spec:
interval: 1m
url: oci://123456789012.dkr.ecr.eu-central-1.amazonaws.com/descheduler
provider: aws
ref:
tag: 1.0.0
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: descheduler
namespace: descheduler
spec:
interval: 1m
chartRef:
kind: OCIRepository
name: descheduler
namespace: descheduler
install:
remediation:
retries: 10
remediateLastFailure: true
upgrade:
remediation:
retries: 10
remediateLastFailure: true
valuesFrom:
- kind: ConfigMap
name: descheduler
valuesKey: descheduler-values
optional: trueHere is a brief summary of the commits we did.
If need be I can provide the specific commits but anyone knows what the issue could be? Edit: Added the kustomize event |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 22 replies
-
|
If you changed anything in the I suggest migrating to Flux Operator which automatically generates the |
Beta Was this translation helpful? Give feedback.
-
|
@stefanprodan sorry to bother you again but we hit the issue once again. Here is our setup. Here is a patch file maybe this helps a bit. |
Beta Was this translation helpful? Give feedback.
If you changed anything in the
clusters/<cluster>dir, that could have catastrophic consequences, like creating a kustomization.yaml in there, deploying things in the flux-system namespace, or having the flux-system namespace is any other kustomization.yaml in Git. You should think of the flux-system ns as kube-system, nothing should go in the there besides Flux.I suggest migrating to Flux Operator which automatically generates the
flux-systemKustomization that you can't delete via Git operations. Migrating an existing repo/cluster can be done without downtime, see https://fluxcd.control-plane.io/operator/flux-bootstrap-migration