From 89d1bb1a4f31f453efa9d0a7dff731df86bfd778 Mon Sep 17 00:00:00 2001 From: Milas Holsting Date: Thu, 14 May 2026 23:47:49 +0200 Subject: [PATCH] expose! very safe yes yes --- deploy/base/expose.yaml | 15 +++++++++++++++ deploy/base/kustomization.yaml | 1 + 2 files changed, 16 insertions(+) create mode 100644 deploy/base/expose.yaml diff --git a/deploy/base/expose.yaml b/deploy/base/expose.yaml new file mode 100644 index 0000000..2c152b5 --- /dev/null +++ b/deploy/base/expose.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: postgres-nodeport + labels: + app: postgres +spec: + type: NodePort + ports: + - port: 5432 # The port the service listens on inside the cluster + targetPort: 5432 # The port the Postgres container is listening on + nodePort: 32432 # Optional: Fixed port between 30000-32767 + protocol: TCP + selector: + app: postgres diff --git a/deploy/base/kustomization.yaml b/deploy/base/kustomization.yaml index 2ffb911..e56a0b5 100644 --- a/deploy/base/kustomization.yaml +++ b/deploy/base/kustomization.yaml @@ -13,3 +13,4 @@ resources: - ./postgres.yaml - ./database-secret.yaml - ./app-secret.yaml + - ./expose.yaml