apiVersion: v1
kind: Service
metadata:
  labels:
    name: postgres-operator
  name: postgres-operator
spec:
  ports:
    - name: apiserver
      port: 8443
      protocol: TCP
      targetPort: 8443
    - name: nsqadmin
      port: 4171
      protocol: TCP
      targetPort: 4171
    - name: nsqd
      port: 4150
      protocol: TCP
      targetPort: 4150
  selector:
    name: postgres-operator
  sessionAffinity: None
  type: ClusterIP
