feat(kustomize): add node affinity for source-controller and update affinity for helm, kustomize, and notification controllers
这个提交包含在:
@@ -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
|
||||
|
||||
在新议题中引用
屏蔽一个用户