apiVersion: v1
kind: Service
metadata:
  labels:
    app: elasticsearch
  name: efk-elasticsearch
  namespace: efk
spec:
  ports:
  - name: http
    port: 9200
    protocol: TCP
    targetPort: http
  - name: transport
    port: 9300
    protocol: TCP
    targetPort: transport
  selector:
    app: elasticsearch
    component: master
    release: efk
  sessionAffinity: None