mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-26 03:46:41 -08:00
This commit directs Kubernetes to assign both IPv4 and IPv6 ClusterIPs to all services where possible.
28 lines
678 B
YAML
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 -}}
|