Skip to content

Commit 605068d

Browse files
authored
fix: Run flux-operator only on control plane nodes (#46)
Run flux-operator only on control plane nodes
1 parent a1b55db commit 605068d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bootstrap/bootstrap.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,8 @@ spec:
18401840
- mountPath: /tmp
18411841
name: temp
18421842
hostNetwork: true
1843+
nodeSelector:
1844+
node-role.kubernetes.io/control-plane: ""
18431845
serviceAccountName: flux-operator
18441846
terminationGracePeriodSeconds: 10
18451847
tolerations:

bootstrap/bootstrap/kustomization.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ patches:
2121
- op: add
2222
path: /spec/template/spec/hostNetwork
2323
value: true
24+
- op: add
25+
path: /spec/template/spec/nodeSelector
26+
value:
27+
node-role.kubernetes.io/control-plane: ""
2428
- op: add
2529
path: /spec/template/spec/tolerations
2630
value:

0 commit comments

Comments
 (0)