From d7e2b6549cd4df87c517e9fee484b38e0f138c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Fri, 29 May 2026 21:15:42 +0000 Subject: [PATCH] add fluxcd --- services/fluxcd-system/README.md | 25 ++++++++++++++++++ services/fluxcd-system/deploy/fluxsystem.yaml | 26 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 services/fluxcd-system/README.md create mode 100644 services/fluxcd-system/deploy/fluxsystem.yaml diff --git a/services/fluxcd-system/README.md b/services/fluxcd-system/README.md new file mode 100644 index 0000000..7546834 --- /dev/null +++ b/services/fluxcd-system/README.md @@ -0,0 +1,25 @@ +# fluxcd-system + +## Setup + +⚠️ **Note** +Do not use helm upgrade --install for the Flux Operator. +Operators mutate their own resources, so Helm cannot reconcile them. +Use helm upgrade or uninstall + install instead. + +### Install operator + +``` bash +helm install flux-operator oci://ghcr.io/controlplaneio-fluxcd/charts/flux-operator \ + --namespace flux-system \ + --create-namespace +``` + +### Update operator and flux system + +``` bash +helm upgrade flux-operator oci://ghcr.io/controlplaneio-fluxcd/charts/flux-operator \ + --namespace flux-system \ + --create-namespace + kubectl apply -f ./deploy/fluxsystem.yaml +``` diff --git a/services/fluxcd-system/deploy/fluxsystem.yaml b/services/fluxcd-system/deploy/fluxsystem.yaml new file mode 100644 index 0000000..d3c3b3e --- /dev/null +++ b/services/fluxcd-system/deploy/fluxsystem.yaml @@ -0,0 +1,26 @@ +apiVersion: fluxcd.controlplane.io/v1 +kind: FluxInstance +metadata: + name: flux + namespace: flux-system + annotations: + fluxcd.controlplane.io/reconcileEvery: "1h" + fluxcd.controlplane.io/reconcileTimeout: "10m" +spec: + distribution: + version: "2.x" + registry: "ghcr.io/fluxcd" + artifact: "oci://ghcr.io/controlplaneio-fluxcd/flux-operator-manifests" + components: + - source-controller + - source-watcher + - kustomize-controller + - helm-controller + - notification-controller + - image-reflector-controller + - image-automation-controller + cluster: + type: kubernetes + size: medium + multitenant: false + networkPolicy: true \ No newline at end of file