Files
ess-helm/charts/matrix-stack/templates/haproxy/service.yaml
Bardi Harborow eb7d3b3bfd Expose services as dual-stack where possible
This commit directs Kubernetes to assign both IPv4 and IPv6 ClusterIPs to all services where possible.
2025-12-02 23:06:47 +11:00

28 lines
678 B
YAML

{{- /*
Copyright 2024 New Vector Ltd
Copyright 2025 Element Creations Ltd
SPDX-License-Identifier: AGPL-3.0-only
*/ -}}
{{- if or $.Values.synapse.enabled $.Values.wellKnownDelegation.enabled -}}
{{- with .Values.haproxy -}}
apiVersion: v1
kind: Service
metadata:
labels:
{{- include "element-io.haproxy.labels" (dict "root" $ "context" .) | nindent 4 }}
name: {{ $.Release.Name }}-haproxy
namespace: {{ $.Release.Namespace }}
spec:
type: ClusterIP
ipFamilyPolicy: PreferDualStack
ports:
- name: haproxy-metrics
port: 8405
targetPort: haproxy-metrics
selector:
app.kubernetes.io/instance: "{{ $.Release.Name }}-haproxy"
{{- end -}}
{{- end -}}