apiVersion: v1
kind: Service
metadata:
  name: postgres-service
  # * Create namespace before use this Service 
  namespace: ns-gitea
  labels:
    app: postgres
spec:
  type: NodePort
  ports:
    - port: 5432
  selector:
    app: postgres
