Skip to content

Commit

Permalink
Merge pull request #26 from yurii-kryvosheia/master
Browse files Browse the repository at this point in the history
chore: add controller tolerations
  • Loading branch information
mermoldy authored Oct 5, 2023
2 parents ff6ede1 + b15a9a5 commit 65fb81e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/agent-k8s/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controllerTolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
4 changes: 4 additions & 0 deletions charts/agent-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ fullnameOverride: ""
controllerNodeSelector: {}
# -- Kubernetes Node Selector for assigning worker agents and scheduling agent tasks to specific nodes in the cluster.
# The selector must match a node's labels for the pod to be scheduled on that node.
controllerTolerations: []
# -- Kubernetes Node Tolerations for the controller.
# Expects input structure as per specification <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core>.
# Example: `--set controllerTolerations[0].operator=Equal,controllerTolerations[0].effect=NoSchedule,controllerTolerations[0].key=dedicated,controllerTolerations[0].value=scalr-agent-controller-pool`
workerNodeSelector: {}
# -- Kubernetes Node Tolerations for the agent worker and the agent task pods.
# Expects input structure as per specification <https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core>.
Expand Down

0 comments on commit 65fb81e

Please sign in to comment.