@@ -9,6 +9,7 @@ instance:
9
9
- kustomize-controller
10
10
- helm-controller
11
11
- notification-controller
12
+ - source-watcher
12
13
commonAnnotations :
13
14
fluxcd.controlplane.io/reconcile : " enabled"
14
15
fluxcd.controlplane.io/reconcileEvery : " 1h"
@@ -27,6 +28,7 @@ instance:
27
28
path : ./clusters/cluster-0
28
29
kustomize :
29
30
patches :
31
+ # OPTIONAL: Allow cluster-autoscaler to evict flux controllers if needed
30
32
- patch : |
31
33
apiVersion: apps/v1
32
34
kind: Deployment
@@ -46,6 +48,7 @@ instance:
46
48
memory: 2Gi
47
49
target:
48
50
kind: Deployment
51
+ # REQUIRED: Increase concurrency and requeue time for helm-controller
49
52
- patch : |
50
53
- op: add
51
54
path: /spec/template/spec/containers/0/args/-
@@ -59,6 +62,7 @@ instance:
59
62
target:
60
63
kind: Deployment
61
64
name: helm-controller
65
+ # REQUIRED: Increase concurrency and requeue time for kustomize-controller
62
66
- patch : |
63
67
- op: replace
64
68
path: /spec/template/spec/volumes/0
@@ -78,6 +82,7 @@ instance:
78
82
target:
79
83
kind: Deployment
80
84
name: kustomize-controller
85
+ # REQUIRED: Increase concurrency and requeue time for source-controller
81
86
- patch : |
82
87
- op: add
83
88
path: /spec/template/spec/containers/0/args/-
@@ -88,6 +93,7 @@ instance:
88
93
target:
89
94
kind: Deployment
90
95
name: source-controller
96
+ # REQUIRED: KustomizeController SOPS decryption for all Kustomizations
91
97
- patch : |
92
98
apiVersion: kustomize.toolkit.fluxcd.io/v1
93
99
kind: Kustomization
@@ -109,8 +115,33 @@ instance:
109
115
target:
110
116
kind: Kustomization
111
117
name: flux-system
118
+ # OPTIONAL: Remove CPU limits from all controllers to avoid OOMKills
112
119
- patch : |
113
120
- op: remove
114
121
path: /spec/template/spec/containers/0/resources/limits/cpu
115
122
target:
116
123
kind: Deployment
124
+ # REQUIRED: Controller-level SOPS decryption
125
+ - patch : |
126
+ - op: add
127
+ path: /spec/template/spec/containers/0/args/-
128
+ value: --sops-age-secret=sops-age-secret
129
+ target:
130
+ kind: Deployment
131
+ name: kustomize-controller
132
+ - # REQUIRED: Watch configmaps and secrets attached to HelmReleases and Kustomizations
133
+ - patch : |
134
+ - op: add
135
+ path: /spec/template/spec/containers/0/args/-
136
+ value: --watch-configs-label-selector=owner!=helm
137
+ target:
138
+ kind: Deployment
139
+ name: (helm-controller|kustomize-controller)
140
+ # REQUIRED: Cancel health checks on new Kustomizations revisions
141
+ - patch : |
142
+ - op: add
143
+ path: /spec/template/spec/containers/0/args/-
144
+ value: --feature-gates=CancelHealthCheckOnNewRevision=true
145
+ target:
146
+ kind: Deployment
147
+ name: kustomize-controller
0 commit comments