apiVersion: v1
kind: Service
metadata:
  name: elasticsearch-service
  namespace: magento
spec:
  selector:
    app: elasticsearch
  ports:
    - protocol: TCP
      port: 9200
      targetPort: 9200