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.

31 lines
807 B

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