Skip to content

Commit

Permalink
Add option to specify controller pod toleration for taints
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgelenas committed Mar 9, 2018
1 parent 835abd1 commit 36e0ac9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/main
/.vscode
*.tgz
/.idea
1 change: 1 addition & 0 deletions alb-ingress-controller-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Parameter | Description | Default
`controller.image.pullPolicy` | controller container image pull policy | `IfNotPresent`
`controller.extraEnv` | map of environment variables to be injected into the controller pod | `{}`
`controller.nodeSelector` | node labels for controller pod assignment | `{}`
`controller.tolerations` | controller pod toleration for taints | `{}`
`controller.podAnnotations` | annotations to be added to controller pod | `{}`
`controller.resources` | controller pod resource requests & limits | `{}`
`controller.service.annotations` | annotations to be added to controller service | `{}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
{{- if .Values.controller.nodeSelector }}
nodeSelector:
{{ toYaml .Values.controller.nodeSelector | indent 8 }}
{{- end }}
tolerations:
{{ toYaml .Values.controller.tolerations | indent 8 }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
terminationGracePeriodSeconds: 60
Expand Down
4 changes: 4 additions & 0 deletions alb-ingress-controller-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ controller:
# node-role.kubernetes.io/node: "true"
# tier: cs

tolerations: {}
# - key: "node-role.kubernetes.io/master"
# effect: NoSchedule

podAnnotations: {}
# iam.amazonaws.com/role: alb-ingress-controller

Expand Down

0 comments on commit 36e0ac9

Please sign in to comment.