39 lines
761 B
YAML
39 lines
761 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: '{{ .Values.serviceName }}'
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ include "s3gw.labels" . | indent 4 }}
|
|
spec:
|
|
selector:
|
|
{{ include "s3gw.selectorLabels" . | indent 4 }}
|
|
ports:
|
|
- name: s3
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: s3
|
|
- name: s3-tls
|
|
protocol: TCP
|
|
port: 443
|
|
targetPort: s3-tls
|
|
{{- if .Values.ui.enabled }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: '{{ .Values.ui.serviceName }}'
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ include "s3gw.labels" . | indent 4 }}
|
|
spec:
|
|
selector:
|
|
{{ include "s3gw-ui.selectorLabels" . | indent 4 }}
|
|
ports:
|
|
- name: webui
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|
|
{{- end }}
|