kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch13/elasticsearch/elasticsearch-service.yml

15 lines
252 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: elasticsearch
namespace: kiamol-ch13-logging
labels:
kiamol: ch13
spec:
selector:
app: elasticsearch
ports:
- name: elasticsearch
port: 9200
targetPort: 9200
type: ClusterIP