---
apiVersion: v1
kind: Service
metadata:
  name: elasticsearch-logging
  namespace: kube-system
  labels:
    k8s-app: elasticsearch-logging
    kubernetes.io/name: "Elasticsearch"
spec:
  selector:
    k8s-app: elasticsearch-logging
  ports:
  - port: 9200
    name: db
    targetPort: db
  - port: 9300
    name: transport
    targetPort: transport
  type: NodePort
