apiVersion: apps/v1
kind: Deployment
metadata:
  name: elastic
spec:
  replicas: 1
  selector:
    matchLabels:
       app: elastic
  template:
    metadata:
      labels:
        app: elastic
    spec:
      containers:
        - name: elastic
          image: '{{ elasticsearch.registry }}/{{ elasticsearch.image }}:{{ elasticsearch.tag }}'
          env:
          - name: discovery.type
            value: "single-node"
          imagePullPolicy: "IfNotPresent"
          ports:
            - containerPort: 9200
