feat(kustomize): add node affinity for source-controller and update affinity for helm, kustomize, and notification controllers
这个提交包含在:
@@ -31,8 +31,26 @@ spec:
|
|||||||
name: flux
|
name: flux
|
||||||
kustomize:
|
kustomize:
|
||||||
patches:
|
patches:
|
||||||
|
# source-controller 需要良好的国际网络环境,优先调度到网络较好的节点上
|
||||||
- target:
|
- target:
|
||||||
kind: Deployment
|
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: |
|
patch: |
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/affinity
|
path: /spec/template/spec/affinity
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户