libreoffice-online/kubernetes/helm/collabora-online/templates/service.yaml
Pranam Lashkari 9326bf045e kubernetes: use consistent hash in haproxy
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia8d13762ebc0b0203fd5fa6870f3e576f1648c8a
2021-05-25 15:27:00 +05:30

24 lines
746 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ .Values.global.app.service.name }}
namespace: {{ .Values.namespace.collabora }}
labels:
app: {{ template "name" . }}
chart: {{ template "chartname" . }}
release: {{ .Release.Name }}
annotations:
haproxy.org/timeout-tunnel: "3600s"
haproxy.org/backend-config-snippet: |
balance url_param WOPISrc check_post
hash-type consistent
spec:
type: {{ .Values.global.app.service.type }}
ports:
- port: {{ .Values.global.app.service.externalPort }}
targetPort: {{ .Values.global.app.service.internalPort }}
protocol: TCP
name: {{ .Values.global.app.service.name }}
selector:
app: {{ template "name" . }}
release: {{ .Release.Name }}