2020-03-03 07:56:39 +00: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"
|
2021-02-09 07:55:58 +00:00
|
|
|
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
|
|
|
targetPort: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
2020-03-03 07:56:39 +00:00
|
|
|
protocol: TCP
|
2021-02-09 07:55:58 +00:00
|
|
|
{{- if and .Values.s3.enabled .Values.s3.metricsPort }}
|
|
|
|
- name: "metrics"
|
2020-11-08 00:07:47 +00:00
|
|
|
port: {{ .Values.s3.metricsPort }}
|
2020-10-15 13:10:22 +00:00
|
|
|
targetPort: {{ .Values.s3.metricsPort }}
|
|
|
|
protocol: TCP
|
2020-11-08 00:07:16 +00:00
|
|
|
{{- end }}
|
2020-03-03 07:56:39 +00:00
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
2021-02-09 07:55:58 +00:00
|
|
|
component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
|