apiVersion: apps/v1
kind: Deployment
metadata:
  name: elastichq-deployment
  labels:
    app: elastichq
spec:
  replicas: 1
  selector:
    matchLabels:
      app: elastichq
  template:
    metadata:
      labels:
        app: elastichq
    spec:
      containers:
      - name: elastichq
        image: elastichq/elasticsearch-hq:release-v3.5.12
        env:
          - name: "HQ_DEFAULT_URL"
            value: ""
          - name: "HQ_ENABLE_SSL"
            value: "True"
          - name: "HQ_VERIFY_CERTS"
            value: "False"
          - name: "HQ_DEFAULT_URL"
            value: "https://${elastic_login}:${elastic_password_url}@${elastic_host}:${elastic_port}"

        ports:
        - containerPort: 5000
        resources:
          limits:
            cpu: "2001m"
            memory: "4Gi"