mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-08-24 02:31:11 +02:00
32 lines
865 B
YAML
32 lines
865 B
YAML
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
|
|
{{- if .Values.master.metricsPort }}
|
|
- name: "metrics"
|
|
port: {{ .Values.master.metricsPort }}
|
|
targetPort: {{ .Values.master.metricsPort }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
selector:
|
|
app: {{ template "seaweedfs.name" . }}
|
|
component: master
|