Skip to content

Commit

Permalink
Merge pull request #10 from vantage-sh/vka-tolerations-affinity-nodeS…
Browse files Browse the repository at this point in the history
…elector

Add support for tolerations, affinity, and nodeSelector.
  • Loading branch information
macb authored Dec 2, 2023
2 parents 38551ed + 54055b7 commit 29777f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/vantage-kubernetes-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: vantage-kubernetes-agent
description: Provisions the Vantage Kubernetes agent.
type: application
version: 1.0.19
version: 1.0.20
appVersion: "1.0.14"
icon: "https://www.vantage.sh/nav-logo.svg"
12 changes: 12 additions & 0 deletions charts/vantage-kubernetes-agent/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "vantage-kubernetes-agent.serviceAccountName" . }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8}}
{{- end}}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
1 change: 0 additions & 1 deletion charts/vantage-kubernetes-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ clusterRoleBinding:
annotations: {}

podAnnotations: {}
podSecurityContext: {}
securityContext: {}
nodeSelector: {}
tolerations: []
Expand Down

0 comments on commit 29777f4

Please sign in to comment.