Deploy Aeternalis through Argo CD with verified PostgreSQL and SRS TLS

This commit is contained in:
Shard
2026-09-06 03:43:31 -04:00
parent 82f48728a2
commit 0ffa0ba5d1
8 changed files with 145 additions and 1 deletions
@@ -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 }}
@@ -11,6 +11,9 @@ spec:
- from:
- namespaceSelector:
matchLabels: { kubernetes.io/metadata.name: {{ .Values.networkPolicy.ingressNamespace | quote }} }
{{- range .Values.networkPolicy.ingressCIDRs }}
- ipBlock: { cidr: {{ . | quote }} }
{{- end }}
ports: [{ protocol: TCP, port: 8080 }]
egress:
- to:
+15
View File
@@ -23,6 +23,12 @@ spec:
automountServiceAccountToken: false
terminationGracePeriodSeconds: 30
imagePullSecrets: {{ $root.Values.imagePullSecrets | toJson }}
{{- if $root.Values.databaseCA.configMap }}
volumes:
- name: postgres-ca
configMap:
name: {{ $root.Values.databaseCA.configMap | quote }}
{{- end }}
securityContext:
runAsNonRoot: true
runAsUser: 65532
@@ -32,6 +38,12 @@ spec:
- name: world
image: {{ if $root.Values.image.digest }}{{ printf "%s@%s" $root.Values.image.repository $root.Values.image.digest | quote }}{{ else }}{{ printf "%s:%s" $root.Values.image.repository $root.Values.image.tag | quote }}{{ end }}
imagePullPolicy: IfNotPresent
{{- if $root.Values.databaseCA.configMap }}
volumeMounts:
- name: postgres-ca
mountPath: /etc/postgres-ca
readOnly: true
{{- end }}
ports: [{ name: http, containerPort: 8080 }]
securityContext:
readOnlyRootFilesystem: true
@@ -64,6 +76,9 @@ kind: Ingress
metadata:
name: {{ $root.Release.Name }}-{{ .id }}
annotations:
{{- if $root.Values.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ $root.Values.ingress.clusterIssuer | quote }}
{{- end }}
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-body-size: "8k"