service.yaml 536 B

12345678910111213141516171819
  1. {{- if .Values.portForwardingList }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "ix-chart.fullname" . }}
  6. labels:
  7. {{- include "ix-chart.labels" . | nindent 4 }}
  8. spec:
  9. type: NodePort
  10. ports:
  11. {{- range $index, $config := .Values.portForwardingList }}
  12. - port: {{ $config.containerPort }}
  13. targetPort: {{ $config.containerPort }}
  14. protocol: {{ $config.protocol }}
  15. nodePort: {{ $config.nodePort }}
  16. {{- end }}
  17. selector:
  18. {{- include "ix-chart.selectorLabels" . | nindent 4 }}
  19. {{- end }}