diff --git a/flux/flux-instance.yaml b/flux/flux-instance.yaml index 3630091..7e10b4d 100644 --- a/flux/flux-instance.yaml +++ b/flux/flux-instance.yaml @@ -31,8 +31,26 @@ spec: name: flux kustomize: patches: + # source-controller 需要良好的国际网络环境,优先调度到网络较好的节点上 - target: kind: Deployment + name: (source-controller) + patch: | + - op: add + path: /spec/template/spec/affinity + value: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - clawjp + - target: + kind: Deployment + name: (helm-controller|kustomize-controller|notification-controller) patch: | - op: add path: /spec/template/spec/affinity