apiVersion: v1
kind: Service
metadata:
  labels:
    app: postgresql
    chart: postgresql-8.9.4
    heritage: Helm
    release: RELEASE-NAME
  name: RELEASE-NAME-postgresql-headless
spec:
  clusterIP: None
  ports:
  - name: tcp-postgresql
    port: 5432
    targetPort: tcp-postgresql
  selector:
    app: postgresql
    release: RELEASE-NAME
  type: ClusterIP
