Skip to content

Commit

Permalink
add ability to define a node selector for baker (#13)
Browse files Browse the repository at this point in the history
Previously this ability was only for node pods (which include baker). But
with remote baker, we need this ability for the baker pod as well.
  • Loading branch information
nicolasochem authored May 13, 2024
1 parent 5e25920 commit 1616ee6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/tezos/templates/octez-baker.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- range $k, $v := .Values.bakers }}
{{- $_ := set $ "node_vals" $v }}

apiVersion: apps/v1
kind: StatefulSet
Expand Down Expand Up @@ -73,6 +74,7 @@ spec:
{{- end }}
securityContext:
fsGroup: 1000
{{- include "tezos.nodeSelectorConfig" $ | indent 6 }}
volumes:
- name: baker-config
configMap:
Expand Down
2 changes: 2 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ bakers: {}
# node_rpc_url: http://octez-node-0:8732
# operations_pool: http://flashbake-endpoint:10732
# dal_node_rpc_url: http://dal-node:8732
# node_selector:
# nodeSelectorKey: nodeSelectorValue

## Configuration for K8s Service resources. Configuring the labels selector of a
## service will result in the service forwarding traffic only to pods that have
Expand Down

0 comments on commit 1616ee6

Please sign in to comment.