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