Skip to content

Commit

Permalink
Merge pull request #4 from stakater-charts/add-tolerations
Browse files Browse the repository at this point in the history
add tolerations
  • Loading branch information
stakater-user authored Feb 22, 2019
2 parents bb93a91 + bf03761 commit c26e610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ def dummy = ""

prepareAndUploadCharts {
charts = [ "kube-state-metrics" ]
isPublic = true
publicChartRepositoryURL = 'https://stakater.github.io/stakater-charts'
publicChartGitURL = '[email protected]:stakater/stakater-charts.git'
}
4 changes: 4 additions & 0 deletions kube-state-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
k8s-app: {{ template "kube-state-metrics.name" . }}
spec:
serviceAccountName: {{ template "kube-state-metrics.name" . }}
{{- if .Values.kubeStateMetrics.tolerations }}
tolerations:
{{ toYaml .Values.kubeStateMetrics.tolerations | indent 8 -}}
{{- end }}
containers:
- name: {{ template "kube-state-metrics.name" . }}
image: "{{ .Values.kubeStateMetrics.image.name }}:{{ .Values.kubeStateMetrics.image.tag }}"
Expand Down

0 comments on commit c26e610

Please sign in to comment.