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.

23 lines
775 B

  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ template "seaweedfs.name" . }}-s3
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. app: {{ template "seaweedfs.name" . }}
  8. component: s3
  9. spec:
  10. ports:
  11. - name: "swfs-s3"
  12. port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
  13. targetPort: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
  14. protocol: TCP
  15. {{- if and .Values.s3.enabled .Values.s3.metricsPort }}
  16. - name: "metrics"
  17. port: {{ .Values.s3.metricsPort }}
  18. targetPort: {{ .Values.s3.metricsPort }}
  19. protocol: TCP
  20. {{- end }}
  21. selector:
  22. app: {{ template "seaweedfs.name" . }}
  23. component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}