Deploy Aeternalis through Argo CD with verified PostgreSQL and SRS TLS
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{{- if .Values.externalDatabase.address }}
|
||||
# Preserve the certificate's DNS identity while routing to the external database.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.externalDatabase.name | quote }}
|
||||
spec:
|
||||
ports: [{ name: postgres, port: 5432, targetPort: 5432 }]
|
||||
---
|
||||
apiVersion: discovery.k8s.io/v1
|
||||
kind: EndpointSlice
|
||||
metadata:
|
||||
name: {{ .Values.externalDatabase.name | quote }}
|
||||
labels:
|
||||
kubernetes.io/service-name: {{ .Values.externalDatabase.name | quote }}
|
||||
addressType: IPv4
|
||||
ports: [{ name: postgres, protocol: TCP, port: 5432 }]
|
||||
endpoints:
|
||||
- addresses: [{{ .Values.externalDatabase.address | quote }}]
|
||||
conditions: { ready: true }
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user