From 2c1a094635df83b6729d7e5d92bc7cdc92aabb6f Mon Sep 17 00:00:00 2001 From: Jean-Francois Roy Date: Wed, 13 Nov 2024 10:26:21 -0800 Subject: [PATCH] fix(flux): add labels to the flux controllers --- kubernetes/flux/instance/instance.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kubernetes/flux/instance/instance.yaml b/kubernetes/flux/instance/instance.yaml index cbf184afb..55d800b06 100644 --- a/kubernetes/flux/instance/instance.yaml +++ b/kubernetes/flux/instance/instance.yaml @@ -25,6 +25,22 @@ spec: domain: cluster.local kustomize: patches: + # Add labels + - patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: not-used + spec: + template: + metadata: + labels: + app.kubernetes.io/instance: flux + app.kubernetes.io/managed-by: flux-operator + app.kubernetes.io/name: flux + app.kubernetes.io/part-of: flux + target: + kind: Deployment # Increase the number of reconciliations that can be performed in parallel and bump the resources limits # https://fluxcd.io/flux/installation/configuration/vertical-scaling/#increase-the-number-of-workers-and-limits - patch: |