2020-03-03 07:56:39 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2021-01-13 20:26:50 +00:00
|
|
|
annotations:
|
|
|
|
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
2020-03-03 07:56:39 +00:00
|
|
|
name: {{ template "seaweedfs.name" . }}-filer
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: filer
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
2021-01-13 20:26:50 +00:00
|
|
|
publishNotReadyAddresses: true
|
2020-03-03 07:56:39 +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
|
2022-08-04 16:08:40 +00:00
|
|
|
{{- if .Values.filer.metricsPort }}
|
|
|
|
- name: "metrics"
|
|
|
|
port: {{ .Values.filer.metricsPort }}
|
|
|
|
targetPort: {{ .Values.filer.metricsPort }}
|
|
|
|
protocol: TCP
|
|
|
|
{{- end }}
|
2020-03-03 07:56:39 +00:00
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
2021-01-13 20:26:50 +00:00
|
|
|
component: filer
|