Skip to content

Commit

Permalink
Merge pull request #13 from asengqi/master
Browse files Browse the repository at this point in the history
add enforcer toleration
  • Loading branch information
garyduan authored Feb 23, 2019
2 parents e016de9 + d99d5c8 commit e36ed30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/enforcer-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
{{- end }}
{{- if .Values.enforcer.tolerations }}
tolerations:
{{ toYaml .Values.enforcer.tolerations | indent 8 }}
{{- end }}
hostPID: true
containers:
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ enforcer:
enabled: true
image:
repository: neuvector/enforcer
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master

manager:
# If false, manager will not be installed
Expand Down

0 comments on commit e36ed30

Please sign in to comment.