Expost postgres cluster

Expose the postgres cluster outside of the Kubernetes cluster
Give myself the option of connecting to postgres from my own machines,
so that I can hopefully leverage the improved performance
Update some file linting issues in Nix
Add necessary gitlab keys so it can be updated properly the next time I
deploy to it
Add DNS entries for postgres
Update the configuraiton of Traefik to expose the appropriate ports
This commit is contained in:
Greg Hellings
2025-05-28 00:10:50 -05:00
parent c1922282d5
commit d7f53e53a3
15 changed files with 298 additions and 58 deletions
+1
View File
@@ -1,4 +1,5 @@
resources:
- flux.yaml
- traefik.yaml
- external-secrets.yaml
- cloudnative-pg.yaml
+22
View File
@@ -0,0 +1,22 @@
apiVersion: "helm.cattle.io/v1"
kind: "HelmChartConfig"
metadata:
name: "traefik"
namespace: "kube-system"
spec:
valuesContent: |-
additionalArguments:
- "--entryPoints.postgres.address=:5432/tcp"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--log.level=DEBUG"
ports:
postgres:
expose:
default: true
port: 5432
exposedPort: 5432
protocol: TCP
traefik:
expose:
default: true