Skip to content

Commit

Permalink
feat(node-servant-applier): updated default bcj policy and affinity
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <armin.schlegel@gmx.de>
  • Loading branch information
siredmar committed Jan 29, 2024
1 parent 334e475 commit 873e572
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 12 deletions.
29 changes: 29 additions & 0 deletions charts/node-servant-applier/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,32 @@ subjects:
- kind: ServiceAccount
name: node-servant-applier
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: node-servant-applier
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- list
- watch
- get
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: node-servant-applier
subjects:
- kind: ServiceAccount
name: node-servant-applier
namespace: kube-system
apiGroup: ""
roleRef:
kind: ClusterRole
name: node-servant-applier
apiGroup: rbac.authorization.k8s.io
19 changes: 7 additions & 12 deletions charts/node-servant-applier/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@ tolerations:
key: edgefarm.io

affinity:
{}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: openyurt.io/is-edge-worker
# operator: In
# values:
# - "true"
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.edgefarm.io/to-be-converted
operator: Exists

completionPolicy:
{}
# type: Always
# ttlSecondsAfterFinished: 60
type: Never

0 comments on commit 873e572

Please sign in to comment.