apiVersion: v1
kind: Service
metadata:
  name: elasticsearch
  labels:
    service: elasticsearch
spec:
  ports:
  - port: 9200
    name: elasticsearch-api
  clusterIP: None
  selector:
    service: elasticsearch
