Skip to content

Commit dd6ae75

Browse files
committed
NODE_CONFIG
1 parent 4362918 commit dd6ae75

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

install-bundler/bundler/templates/statefulset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ spec:
7474
- name: {{ include "chart.name" . }}-pod
7575
imagePullPolicy: {{ if eq .Values.provider "local" }} "Never" {{ else }} "IfNotPresent" {{ end }}
7676
image: {{ .Values.image.name }}:{{.Values.image.tag}}
77+
command: ["/bin/sh", "-c"]
78+
args:
79+
- |
80+
export POD_INDEX=$(cat /etc/podinfo/ordinal_index)
81+
export NODE_CONFIG='{"relayer": {"nodePathIndex": '$POD_INDEX'}}'
7782
7883
ports:
7984
- containerPort: {{ .Values.targetPort }}

0 commit comments

Comments
 (0)