2020-03-03 15:56:39 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "seaweedfs.name" . }}-s3
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: s3
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: "swfs-s3"
|
|
|
|
port: {{ .Values.s3.port }}
|
|
|
|
targetPort: {{ .Values.s3.port }}
|
|
|
|
protocol: TCP
|
2020-10-15 21:10:22 +08:00
|
|
|
{{- if .Values.s3.metricsPort }}
|
|
|
|
- name: "swfs-s3-metrics"
|
2020-11-08 08:07:47 +08:00
|
|
|
port: {{ .Values.s3.metricsPort }}
|
2020-10-15 21:10:22 +08:00
|
|
|
targetPort: {{ .Values.s3.metricsPort }}
|
|
|
|
protocol: TCP
|
2020-11-08 08:07:16 +08:00
|
|
|
{{- end }}
|
2020-03-03 15:56:39 +08:00
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: s3
|