Fix rancher-istio/rancher-tracing nodeSelector and tolerations

pull/1813/head
Arvind Iyengar 2022-03-17 16:38:41 -07:00
parent 8e0d42e241
commit 0ee27e5146
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
3 changed files with 29 additions and 11 deletions

View File

@ -30,3 +30,18 @@ If release name contains chart name it will be used as a full name.
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{/*
Windows cluster will add default taint for linux nodes,
add below linux tolerations to workloads could be scheduled to those linux nodes
*/}}
{{- define "linux-node-tolerations" -}}
- key: "cattle.io/os"
value: "linux"
effect: "NoSchedule"
operator: "Equal"
{{- end -}}
{{- define "linux-node-selector" -}}
kubernetes.io/os: linux
{{- end -}}

View File

@ -74,10 +74,14 @@ spec:
runAsUser: 1000 runAsUser: 1000
serviceAccountName: {{ include "tracing.fullname" . }} serviceAccountName: {{ include "tracing.fullname" . }}
{{- end }} {{- end }}
{{- with .Values.tolerations }} nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
tolerations: {{- if .Values.nodeSelector }}
{{- toYaml . | nindent 8 }} {{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }} {{- end }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
{{- if .Values.tolerations }}
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if eq .Values.jaeger.spanStorageType "badger" }} {{- if eq .Values.jaeger.spanStorageType "badger" }}
volumes: volumes:
- name: data - name: data

View File

@ -1,12 +1,11 @@
provider: jaeger provider: jaeger
contextPath: "" contextPath: ""
nodeSelector: ## Node labels for pod assignment
kubernetes.io/os: linux ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerations: ##
- key: cattle.io/os nodeSelector: {}
operator: "Equal" ## List of node taints to tolerate (requires Kubernetes >= 1.6)
value: "linux" tolerations: []
effect: NoSchedule
podAntiAffinityLabelSelector: [] podAntiAffinityLabelSelector: []
podAntiAffinityTermLabelSelector: [] podAntiAffinityTermLabelSelector: []
nameOverride: "" nameOverride: ""