vars:
  clusterName:
    default: "es-standalone"
    description: "Name of the Kind cluster"
  imageRepository:
    default: "docker.elastic.co/elasticsearch/elasticsearch"
    description: "Elasticsearch Docker image repository"
  imageTag:
    default: "9.3.1"
    description: "Elasticsearch Docker image tag"
images:
  preload:
    refs:
      - "{{ .imageRepository }}:{{ .imageTag }}"
kind:
  name: "{{ .clusterName }}"
  nodes:
    - role: control-plane
      extraPortMappings:
        - containerPort: 30920
          hostPort: 30920
helm:
  repos:
    - name: elastic
      url: https://helm.elastic.co
components:
  - name: elasticsearch
    type: helm
    helm:
      chart: elastic/elasticsearch
      values:
        image: "{{ .imageRepository }}"
        imageTag: "{{ .imageTag }}"
        clusterName: elasticsearch
        nodeGroup: master
        replicas: 1
        minimumMasterNodes: 1
        esJavaOpts: "-Xmx256m -Xms256m"
        createCert: false
        extraEnvs:
          - name: xpack.security.enabled
            value: "false"
        protocol: http
        resources:
          requests:
            cpu: 250m
            memory: 512Mi
          limits:
            cpu: 1000m
            memory: 1Gi
        service:
          type: NodePort
          nodePort: 30920
        persistence:
          enabled: false
