apiVersion: v1
kind: Service
metadata:
    name: elasticsearch
spec:
    selector:
        app: elasticsearch
    ports:
        -   name: elasticsearch
            port: 9200
            targetPort: 9200
