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
4 changes: 4 additions & 0 deletions charts/substrate/templates/ate-api-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ spec:
prometheus.io/port: "9090"
spec:
serviceAccountName: {{ include "substrate.fullname" (list "ate-api-server" .) }}
{{- with (or .Values.ateApiServer.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if eq .Values.auth.mode "jwt" }}
initContainers:
- name: assemble-cred-bundle
Expand Down
4 changes: 4 additions & 0 deletions charts/substrate/templates/ate-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
app: ate-controller
spec:
serviceAccountName: {{ include "substrate.fullname" (list "ate-controller" .) }}
{{- with (or .Values.ateController.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: ate-controller
image: {{ include "substrate.componentImage" (list "atecontroller" .) }}
Expand Down
4 changes: 4 additions & 0 deletions charts/substrate/templates/atelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ spec:
prometheus.io/port: "9090"
spec:
serviceAccountName: {{ include "substrate.fullname" (list "atelet" .) }}
{{- with (or .Values.atelet.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: atelet
image: {{ include "substrate.componentImage" (list "atelet" .) }}
Expand Down
4 changes: 4 additions & 0 deletions charts/substrate/templates/atenet-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ spec:
app: dns
spec:
serviceAccountName: {{ include "substrate.fullname" (list "atenet-dns" .) }}
{{- with (or .Values.dns.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
shareProcessNamespace: true
initContainers:
- name: init-dns
Expand Down
4 changes: 4 additions & 0 deletions charts/substrate/templates/atenet-router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ spec:
prometheus.io/port: "9090"
spec:
serviceAccountName: {{ include "substrate.fullname" (list "atenet-router" .) }}
{{- with (or .Values.atenetRouter.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: atenet-router
image: {{ include "substrate.componentImage" (list "atenet" .) }}
Expand Down
4 changes: 4 additions & 0 deletions charts/substrate/templates/rustfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ spec:
labels:
app: rustfs
spec:
{{- with (or .Values.rustfs.nodeSelector .Values.nodeSelector) }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
runAsUser: 10001
runAsGroup: 10001
Expand Down
25 changes: 25 additions & 0 deletions charts/substrate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ auth:
# manifests/ate-install/ install path (kubectl apply).
createNamespace: false

# Global nodeSelector applied to the substrate workloads (ate-api-server,
# ate-controller, atenet-router, dns, rustfs, and the atelet DaemonSet). Each
# of those components also exposes its own `nodeSelector`; when set to a
# non-empty map it overrides this global default for that component.
nodeSelector: {}

valkey:
enabled: true
replicas: 6
Expand All @@ -82,6 +88,8 @@ rustfs:
bucket: ate-snapshots
accessKey: rustfsadmin
secretKey: rustfsadmin
# Overrides the global .Values.nodeSelector for the rustfs deployment.
nodeSelector: {}

# atelet daemonset overrides. Defaults use the in-cluster RustFS deployment for
# snapshots. Set rustfs.enabled=false and override these fields when using
Expand All @@ -93,6 +101,23 @@ atelet:
storageBackend: s3
extraArgs: []
extraEnv: []
# Overrides the global .Values.nodeSelector for the atelet DaemonSet.
nodeSelector: {}

# Per-component overrides for the control-plane deployments. Each nodeSelector,
# when set to a non-empty map, overrides the global .Values.nodeSelector for
# that component only.
ateApiServer:
nodeSelector: {}

ateController:
nodeSelector: {}

atenetRouter:
nodeSelector: {}

dns:
nodeSelector: {}

redis:
# Override the cluster address. Empty -> derived from valkey.enabled
Expand Down