2021-01-13 20:26:50 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "seaweedfs.name" . }}-filer-client
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: filer
|
|
|
|
{{- if .Values.filer.metricsPort }}
|
|
|
|
monitoring: "true"
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
2021-02-24 07:55:17 +00:00
|
|
|
clusterIP: None
|
2021-01-13 20:26:50 +00:00
|
|
|
ports:
|
|
|
|
- name: "swfs-filer"
|
|
|
|
port: {{ .Values.filer.port }}
|
|
|
|
targetPort: {{ .Values.filer.port }}
|
|
|
|
protocol: TCP
|
|
|
|
- name: "swfs-filer-grpc"
|
|
|
|
port: {{ .Values.filer.grpcPort }}
|
|
|
|
targetPort: {{ .Values.filer.grpcPort }}
|
|
|
|
protocol: TCP
|
|
|
|
{{- if .Values.filer.metricsPort }}
|
|
|
|
- name: "metrics"
|
|
|
|
port: {{ .Values.filer.metricsPort }}
|
|
|
|
targetPort: {{ .Values.filer.metricsPort }}
|
|
|
|
protocol: TCP
|
|
|
|
{{- end }}
|
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
2021-02-09 07:43:55 +00:00
|
|
|
component: filer
|