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
865 B

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