service.yaml 509 B

12345678910111213141516171819202122
  1. {{- if .Values.spark.install.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ .Release.Name }}-spark
  6. labels:
  7. tier: aihub-dag
  8. component: spark
  9. release: {{ .Release.Name }}
  10. spec:
  11. type: {{ .Values.spark.service.type }}
  12. ports:
  13. - port: {{ .Values.spark.service.port }}
  14. targetPort: 22
  15. protocol: TCP
  16. name: ssh-port
  17. nodePort: {{ .Values.spark.service.nodePort }}
  18. selector:
  19. tier: aihub-dag
  20. component: spark
  21. release: {{ .Release.Name }}
  22. {{- end }}