mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 21:11:02 +08:00
23 lines
562 B
YAML
23 lines
562 B
YAML
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
|
|
{{- if .Values.s3.metricsPort }}
|
|
- name: "swfs-s3-metrics"
|
|
port: {{ .Values.s3.metricsPort }}
|
|
targetPort: {{ .Values.s3.metricsPort }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
selector:
|
|
app: {{ template "seaweedfs.name" . }}
|
|
component: s3 |