feat(flux): only tolerate no Cilium, other scheduling

This commit is contained in:
JJGadgets
2024-09-22 13:18:53 +08:00
parent c7f6e2117e
commit b5164d9d36

View File

@@ -100,7 +100,15 @@ spec:
- topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
flux: localhost
flux: localhost # schedule all Flux pods on the same node
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane # only schedule on control plane nodes
operator: Exists
- key: fuckoff.home.arpa/flux # don't schedule on this node
operator: DoesNotExist
target:
kind: Deployment
- patch: |
@@ -217,7 +225,8 @@ spec:
- op: add
path: /spec/template/spec/tolerations
value:
- operator: Exists
- key: node.cilium.io/agent-not-ready
operator: Exists
- op: replace
path: /spec/strategy
value: