c12s-kubespray/roles/kubernetes-apps/efk/elasticsearch/templates/elasticsearch-service.yml.j2

19 lines
381 B
Text
Raw Normal View History

2017-01-26 23:33:01 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch-logging
namespace: "{{ system_namespace }}"
labels:
k8s-app: elasticsearch-logging
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "Elasticsearch"
spec:
ports:
- port: {{ elasticsearch_service_port }}
protocol: TCP
targetPort: db
selector:
k8s-app: elasticsearch-logging