2020-03-03 15:56:39 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "seaweedfs.name" . }}-master
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: master
|
|
|
|
annotations:
|
|
|
|
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
|
|
|
spec:
|
|
|
|
clusterIP: None
|
2021-01-14 04:27:27 +08:00
|
|
|
publishNotReadyAddresses: true
|
2020-03-03 15:56:39 +08:00
|
|
|
ports:
|
|
|
|
- name: "swfs-master"
|
|
|
|
port: {{ .Values.master.port }}
|
|
|
|
targetPort: {{ .Values.master.port }}
|
|
|
|
protocol: TCP
|
|
|
|
- name: "swfs-master-grpc"
|
|
|
|
port: {{ .Values.master.grpcPort }}
|
|
|
|
targetPort: {{ .Values.master.grpcPort }}
|
|
|
|
protocol: TCP
|
2022-08-05 00:08:40 +08:00
|
|
|
{{- if .Values.master.metricsPort }}
|
|
|
|
- name: "metrics"
|
|
|
|
port: {{ .Values.master.metricsPort }}
|
|
|
|
targetPort: {{ .Values.master.metricsPort }}
|
|
|
|
protocol: TCP
|
|
|
|
{{- end }}
|
2020-03-03 15:56:39 +08:00
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
2021-01-14 04:27:27 +08:00
|
|
|
component: master
|