expose! very safe yes yes

This commit is contained in:
2026-05-14 23:47:49 +02:00
parent a8d06f5342
commit 89d1bb1a4f
2 changed files with 16 additions and 0 deletions

15
deploy/base/expose.yaml Normal file
View File

@@ -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

View File

@@ -13,3 +13,4 @@ resources:
- ./postgres.yaml - ./postgres.yaml
- ./database-secret.yaml - ./database-secret.yaml
- ./app-secret.yaml - ./app-secret.yaml
- ./expose.yaml