Skip to content

Commit

Permalink
Add tolerations to controller-statefulset and deamonset (#187)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben <[email protected]>
  • Loading branch information
slashben authored Mar 4, 2024
1 parent 8775615 commit e44fd20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions chart/kubecop/templates/controller-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
5 changes: 1 addition & 4 deletions chart/kubecop/templates/deamonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,7 @@ spec:
readOnly: true
{{- end }}
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
{{- toYaml .Values.tolerations | nindent 8 }}
volumes:
- name: host
hostPath:
Expand Down
6 changes: 5 additions & 1 deletion chart/kubecop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ securityContextNormal: {}

nodeSelector: {}

tolerations: []
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists

affinity:
nodeAffinity:
Expand Down

0 comments on commit e44fd20

Please sign in to comment.