You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
754 B

  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ template "seaweedfs.name" . }}-volume
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. app: {{ template "seaweedfs.name" . }}
  8. component: volume
  9. spec:
  10. clusterIP: None
  11. ports:
  12. - name: "swfs-volume"
  13. port: {{ .Values.volume.port }}
  14. targetPort: {{ .Values.volume.port }}
  15. protocol: TCP
  16. - name: "swfs-volume-18080"
  17. port: {{ .Values.volume.grpcPort }}
  18. targetPort: {{ .Values.volume.grpcPort }}
  19. protocol: TCP
  20. {{- if .Values.volume.metricsPort }}
  21. - name: "swfs-volume-metrics"
  22. port: {{ .Values.volume.metricsPort }}
  23. targetPort: {{ .Values.volume.metricsPort }}
  24. protocol: TCP
  25. {{- end }}
  26. selector:
  27. app: {{ template "seaweedfs.name" . }}
  28. component: volume