23 lines
650 B
YAML
Raw Normal View History

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