Skip to content

Commit 5431be3

Browse files
committed
expand port logic for odin-xspress
1 parent 67f247c commit 5431be3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Charts/odin-xspress/templates/xspress-control.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ spec:
4343
- /odin/deployment/xspress-control.sh
4444
ports:
4545
- containerPort: 12000
46+
{{- range $i, $e := until (int .Values.odinDataCount) }}
47+
{{ printf "- containerPort: %d" (add 15150 $i) }}
48+
{{- end }}
4649
volumeMounts:
4750
- name: {{ .Values.detectorName }}-odin-config-volume
4851
mountPath: /odin/deployment
@@ -69,3 +72,8 @@ spec:
6972
- name: {{ .Values.detectorName }}-xspress-control-ctrl
7073
protocol: TCP
7174
port: 12000
75+
{{- range $i, $e := until (int .Values.odinDataCount) }}
76+
- name: {{ $.Values.detectorName }}-data-{{ $i }}
77+
protocol: TCP
78+
{{ printf "port: %d" (add 15150 $i) }}
79+
{{- end }}

0 commit comments

Comments
 (0)