mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-26 11:56:37 -08:00
30 lines
688 B
YAML
30 lines
688 B
YAML
{{- /*
|
|
Copyright 2025 New Vector Ltd
|
|
Copyright 2025-2026 Element Creations Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/ -}}
|
|
|
|
{{- with $.Values.postgres -}}
|
|
{{- if (include "element-io.postgres.enabled" (dict "root" $)) }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
{{- include "element-io.postgres.labels" (dict "root" $ "context" .) | nindent 4 }}
|
|
name: {{ $.Release.Name }}-postgres
|
|
namespace: {{ $.Release.Namespace }}
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
ports:
|
|
- port: 5432
|
|
name: postgres
|
|
- port: 9187
|
|
name: metrics
|
|
ipFamilyPolicy: PreferDualStack
|
|
selector:
|
|
app.kubernetes.io/instance: {{ $.Release.Name }}-postgres
|
|
{{- end -}}
|
|
{{- end -}}
|