Skip to content

Commit

Permalink
Add role label to nodes in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
chainchad committed Jan 18, 2024
1 parent 286c8c0 commit 751e3c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ $.Release.Name }}
instance: {{ $cfg.name }}
release: {{ $.Release.Name }}
# Role value should either be: botostrap or node.
# There should only be one "bootstrap" node, the rest should be "node".
# This is used for testing.
role: {{ $cfg.role }}
{{- range $key, $value := $.Values.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down
8 changes: 7 additions & 1 deletion charts/chainlink-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ chainlink:
p2p_port: 6690
nodes:
- name: node-1
role: bootstrap
image: "public.ecr.aws/chainlink/chainlink:latest"
# default resources are 300m/1Gi
# first node need more resources to build faster inside container
Expand Down Expand Up @@ -68,10 +69,15 @@ chainlink:
# or use overridesToml to override some part of configuration
# overridesToml: |
- name: node-2
role: node
- name: node-3
role: node
- name: node-4
role: node
- name: node-5
role: node
- name: node-6
role: node
resources:
requests:
cpu: 350m
Expand Down Expand Up @@ -276,7 +282,7 @@ ingress:
port:
number: 1080
# monitoring.coreos.com/v1 PodMonitor for each node
prometheusMonitor: true
prometheusMonitor: false

# deployment placement, standard helm stuff
podAnnotations:
Expand Down

0 comments on commit 751e3c1

Please sign in to comment.