aboutsummaryrefslogtreecommitdiff
path: root/k8s/seaweedfs/templates/master-service.yaml
blob: 0ce467538e082f725889314fc127fbf962baa198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
  publishNotReadyAddresses: true
  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
  selector:
    app: {{ template "seaweedfs.name" . }}
    component: master