mirror of
https://github.com/versity/versitygw.git
synced 2026-08-20 14:16:28 +00:00
28 lines
671 B
YAML
28 lines
671 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "versitygw.fullname" . }}
|
|
labels:
|
|
{{- include "versitygw.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.gateway.port }}
|
|
targetPort: s3-api
|
|
protocol: TCP
|
|
name: s3-api
|
|
{{- if .Values.admin.enabled }}
|
|
- port: {{ .Values.admin.port }}
|
|
targetPort: admin
|
|
protocol: TCP
|
|
name: admin
|
|
{{- end }}
|
|
{{- if .Values.webui.enabled }}
|
|
- port: {{ .Values.webui.port }}
|
|
targetPort: webui
|
|
protocol: TCP
|
|
name: webui
|
|
{{- end }}
|
|
selector:
|
|
{{- include "versitygw.selectorLabels" . | nindent 4 }}
|