zkt25/z2/db-service.yaml

15 lines
214 B
YAML

apiVersion: v1
kind: Service
metadata:
name: postgres-service
namespace: my-namespace
spec:
selector:
app: postgres
ports:
- protocol: TCP
port: 5432
targetPort: 5432
type: ClusterIP