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
9 changes: 9 additions & 0 deletions helm/charts/nats/files/nats-box/deployment/pod-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ metadata:
labels:
{{- include "natsBox.labels" $ | nindent 4 }}
spec:
{{- with .Values.natsBox.podTemplate.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 4 }}
{{- end }}

{{- with .Values.natsBox.podTemplate.tolerations }}
tolerations:
{{- toYaml . | nindent 4 }}
{{- end }}
containers:
{{- with .Values.natsBox.container }}
- {{ include "nats.loadMergePatch" (merge (dict "file" "nats-box/deployment/container.yaml" "ctx" $) .) | nindent 4 }}
Expand Down
9 changes: 9 additions & 0 deletions helm/charts/nats/files/stateful-set/pod-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ metadata:
checksum/config: {{ sha256sum $configMap }}
{{- end }}
spec:
{{- with .Values.podTemplate.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 4 }}
{{- end }}

{{- with .Values.podTemplate.tolerations }}
tolerations:
{{- toYaml . | nindent 4 }}
{{- end }}
containers:
# nats
{{- $nats := dict }}
Expand Down
16 changes: 16 additions & 0 deletions helm/charts/nats/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,14 @@ podTemplate:
#
topologySpreadConstraints: {}

# node selection for NATS StatefulSet pods
# if empty, Kubernetes will schedule on any node
nodeSelector: {}

# tolerations for NATS StatefulSet pods
# if empty, no tolerations are applied
tolerations: []

# merge or patch the pod template
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pod-v1-core
merge: {}
Expand Down Expand Up @@ -619,6 +627,14 @@ natsBox:

# deployment -> pod template
podTemplate:
# node selection for nats-box pods
# if empty, Kubernetes will schedule on any node
nodeSelector: {}

# tolerations for nats-box pods
# if empty, no tolerations are applied
tolerations: []

# merge or patch the pod template
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pod-v1-core
merge: {}
Expand Down