2025-12-01 12:48:39 +01:00
|
|
|
{{- $root := . -}}
|
2026-01-26 08:26:15 +01:00
|
|
|
{{- $nodes := default (list) .Values.nodes.nodes }}
|
2025-12-01 12:48:39 +01:00
|
|
|
{{- range $i, $node := $nodes }}
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
2026-01-26 08:26:15 +01:00
|
|
|
name: {{ include "nomos-runner.fullname" $root }}-node-{{ $i }}
|
2025-12-01 12:48:39 +01:00
|
|
|
labels:
|
2026-01-26 08:26:15 +01:00
|
|
|
{{- include "nomos-runner.nodeLabels" (dict "root" $root "index" $i) | nindent 4 }}
|
2025-12-01 12:48:39 +01:00
|
|
|
spec:
|
|
|
|
|
type: NodePort
|
|
|
|
|
selector:
|
2026-01-26 08:26:15 +01:00
|
|
|
{{- include "nomos-runner.nodeLabels" (dict "root" $root "index" $i) | nindent 4 }}
|
2025-12-01 12:48:39 +01:00
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
port: {{ default 18080 $node.apiPort }}
|
|
|
|
|
targetPort: http
|
|
|
|
|
- name: testing-http
|
|
|
|
|
port: {{ default 18081 $node.testingHttpPort }}
|
|
|
|
|
targetPort: testing-http
|
|
|
|
|
{{- end }}
|