---
apiVersion: v1
kind: Service
metadata:
  name: hulk-elasticsearch-read
  labels:
    app: hulk
spec:
  ports:
    - name: https
      port: 9200
      targetPort: 9200
  selector:
    # Select coordinating nodes
    elasticsearch.k8s.elastic.co/cluster-name: "hulk"
    elasticsearch.k8s.elastic.co/node-master: "false"
    elasticsearch.k8s.elastic.co/node-data: "false"
    elasticsearch.k8s.elastic.co/node-ingest: "false"
    elasticsearch.k8s.elastic.co/node-ml: "false"
---
apiVersion: v1
kind: Service
metadata:
  name: hulk-elasticsearch-write
  labels:
    app: hulk
spec:
  ports:
    - name: https
      port: 9200
      targetPort: 9200
  selector:
    # Select ingest nodes
    elasticsearch.k8s.elastic.co/cluster-name: "hulk"
    elasticsearch.k8s.elastic.co/node-ingest: "true"
