apiVersion: v1
kind: Service
metadata:
  name: elastic
  namespace: TARGET_K8S_NAMESPACE
  labels:
    app: elastic
spec:
  selector:
    app: elastic
  ports:
    - name: http
      port: 9200
    - name: transport
      port: 9300
      protocol: TCP