# Source: elasticsearch/templates/test/test-elasticsearch-health.yaml
apiVersion: v1
kind: Pod
metadata:
  name: "elasticsearch-dtdjx-test"
  annotations:
    "helm.sh/hook": test
    "helm.sh/hook-delete-policy": hook-succeeded
    meta.helm.sh/release-name: 'elasticsearch'
  namespace: elastic
  labels:
    gitops.jenkins-x.io/pipeline: 'namespaces'
spec:
  securityContext:
    fsGroup: 1000
    runAsUser: 1000
  containers:
    - name: "elasticsearch-jsihk-test"
      image: "docker.elastic.co/elasticsearch/elasticsearch:7.10.0"
      imagePullPolicy: "IfNotPresent"
      command:
        - "sh"
        - "-c"
        - |
          #!/usr/bin/env bash -e
          curl -XGET --fail 'elasticsearch-master:9200/_cluster/health?wait_for_status=yellow&timeout=1s'
  restartPolicy: Never
