Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions versions/kruise-game/next/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,15 @@ spec:
path: config.toml
name: kruise-game-manager-config
name: provider-config
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
6 changes: 6 additions & 0 deletions versions/kruise-game/next/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ serviceAccount:
# Annotations to add to the service account
annotations: {}

nodeSelector: {}

tolerations: []

affinity: {}

service:
port: 8443

Expand Down
10 changes: 9 additions & 1 deletion versions/kruise-rollout/next/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
- {{ .Values.rollout.fullname }}
topologyKey: kubernetes.io/hostname
weight: 100
{{- with .Values.nodeAffinity }}
nodeAffinity:
{{- toYaml . | nindent 10 }}
{{- end }}
topologySpreadConstraints:
- labelSelector:
matchLabels:
Expand All @@ -107,7 +111,11 @@ spec:
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion versions/kruise-rollout/next/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ resources:
# cpu: 100m
# memory: 128Mi

tolerations:
nodeAffinity: {}

nodeSelector: {}

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>.
Expand Down
12 changes: 12 additions & 0 deletions versions/kruise/next/templates/pre_delete_hook_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ spec:
- name: pre-delete-job
image: {{ .Values.helmHooks.image.repository }}:{{ .Values.helmHooks.image.tag }}
imagePullPolicy: IfNotPresent
{{- with .Values.helmHooks.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.helmHooks.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.helmHooks.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
---
# write a service account named kruise-helm-hook:
apiVersion: v1
Expand Down
3 changes: 3 additions & 0 deletions versions/kruise/next/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ helmHooks:
image:
repository: openkruise/kruise-helm-hook
tag: v0.1.0
nodeSelector: {}
tolerations: []
affinity: {}
Loading