mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-03 22:03:12 +00:00
23 lines
666 B
YAML
23 lines
666 B
YAML
|
|
{{- $root := . -}}
|
||
|
|
{{- $nodes := default (list) .Values.executors.nodes }}
|
||
|
|
{{- range $i, $node := $nodes }}
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: {{ include "nomos-runner.fullname" $root }}-executor-{{ $i }}
|
||
|
|
labels:
|
||
|
|
{{- include "nomos-runner.executorLabels" (dict "root" $root "index" $i) | nindent 4 }}
|
||
|
|
spec:
|
||
|
|
type: NodePort
|
||
|
|
selector:
|
||
|
|
{{- include "nomos-runner.executorLabels" (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 }}
|