apiVersion: v1
kind: Service
metadata:
  name: test-kubegres-primary
  namespace: default
  labels:
    environment: acceptancetesting
spec:
  type: NodePort
  ports:
    - protocol: TCP
      port: 5432
      nodePort: 30007
  selector:
    app: my-kubegres
    replicationRole: primary

