From 8522a8e6fce71dadfdb60c6cf96890133c9e0f90 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/kubernetes/flux/instance/instance.yaml b/kubernetes/flux/instance/instance.yaml index cbf184afb..31ac0ab38 100644 --- a/kubernetes/flux/instance/instance.yaml +++ b/kubernetes/flux/instance/instance.yaml @@ -25,6 +25,21 @@ 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/name: flux + app.kubernetes.io/instance: flux + app.kubernetes.io/managed-by: flux-operator + 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: |