apiVersion: v1
kind: Service
metadata:
  name: postgres-server
  labels:
    app: postgres-server
spec:
  ports:
  - port: 5432
    targetPort: 5432
    protocol: TCP
    name: postgres
  selector:
    app: postgres
