2020-03-03 07:56:39 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "seaweedfs.name" . }}-volume
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: volume
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
|
|
|
ports:
|
|
|
|
- name: "swfs-volume"
|
|
|
|
port: {{ .Values.volume.port }}
|
|
|
|
targetPort: {{ .Values.volume.port }}
|
|
|
|
protocol: TCP
|
|
|
|
- name: "swfs-volume-18080"
|
|
|
|
port: {{ .Values.volume.grpcPort }}
|
|
|
|
targetPort: {{ .Values.volume.grpcPort }}
|
|
|
|
protocol: TCP
|
2020-10-15 13:10:22 +00:00
|
|
|
{{- if .Values.volume.metricsPort }}
|
|
|
|
- name: "swfs-volume-metrics"
|
|
|
|
port: {{ .Values.volume.metricsPort }}
|
|
|
|
targetPort: {{ .Values.volume.metricsPort }}
|
|
|
|
protocol: TCP
|
2020-11-08 00:07:16 +00:00
|
|
|
{{- end }}
|
2021-04-14 10:57:49 +00:00
|
|
|
selector:
|
2020-03-03 07:56:39 +00:00
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: volume
|