kruise rollout support tolerations (#71)

Co-authored-by: 明源 <liming.jlm@alibaba-inc.com>
This commit is contained in:
Rimond 2023-10-27 10:39:48 +08:00 committed by GitHub
parent 5066fd01f0
commit 030f5de05e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -96,3 +96,7 @@ spec:
- {{ .Values.rollout.fullname }}
topologyKey: kubernetes.io/hostname
weight: 100
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@ -59,3 +59,13 @@ resources:
# requests:
# cpu: 100m
# memory: 128Mi
tolerations:
# Toleration represents the toleration object that can be attached to a pod.
# The pod this Toleration is attached to tolerates any taint that matches
# the triple <key,value,effect> using the matching operator <operator>.
# you could find more info at https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
# - effect: NoSchedule
# key: test
# operator: Equal
# value: hello