apiVersion: apps/v1
kind: Deployment
metadata:
    name: elasticsearch
spec:
    replicas: 1
    selector:
        matchLabels:
            app: elasticsearch
    template:
        metadata:
            labels:
                app: elasticsearch
        spec:
            containers:
                -   name: elasticsearch
                    image: "{{DOCKER_ELASTIC_IMAGE}}"
                    ports:
                        -   name: elasticsearch
                            containerPort: 9200
                            protocol: TCP

                    env:
                        -   name: discovery.type
                            value: single-node
