# Rally for ECK

**URL:** <https://discuss.elastic.co/t/rally-for-eck/246912>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [August 31, 2020, 7:15am UTC](https://discuss.elastic.co/t/rally-for-eck/246912 "2020-08-31T07:15:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kailas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kailas/32/55376_2.png) [@Kailas](https://discuss.elastic.co/u/Kailas)\
**Post date:** [August 31, 2020, 7:15am UTC](https://discuss.elastic.co/t/rally-for-eck/246912/1 "2020-08-31T07:15:23Z")

</div>

Hi,

Can anyone please help me the Rally yaml files ? Need to run some benchmark on my existing ECK cluster.

Also, please guide for any documentation of Rally on ECK.

Thanks in advance.  
Kailas

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [September 3, 2020, 2:58pm UTC](https://discuss.elastic.co/t/rally-for-eck/246912/2 "2020-09-03T14:58:43Z")

</div>

Hello!

Here is an example yaml job to help you get started:

```auto
  
apiVersion: batch/v1
kind: Job
metadata:
  name: bench
  namespace: bench
spec:
  template:
    spec:
      containers:
      - name: esrally
        image: elastic/rally:1.2.1
        resources:
          requests:
            memory: <MEM>Gi
            cpu: <CPU>
        command: 
        - sh
        - -c
        - |
          sed -i "s;/rally/.rally/benchmarks;/mnt/elastic-internal/rally-benchmarks;g" /rally/.rally/rally.ini;
          ELASTIC_PASS=$(cat /mnt/elastic-internal/elastic-user-secret/elastic)
          CLIENT_OPTIONS="use_ssl:true,verify_certs:false,basic_auth_user:'elastic',basic_auth_password:'$ELASTIC_PASS'"
          esrally --track=<TRACK> --challenge=<CHALLENGE> --track-params="<TRACKPARAMS>" --pipeline=benchmark-only --target-hosts=bench-es-http --client-options=$CLIENT_OPTIONS
        volumeMounts:
        - name: elastic-user-secret
          mountPath: "/mnt/elastic-internal/elastic-user-secret"
          readOnly: true
        - name: rally-benchmarks
          mountPath: "/mnt/elastic-internal/rally-benchmarks"         
      volumes:
      - name: elastic-user-secret
        secret:
          secretName: bench-es-elastic-user
      - name: rally-benchmarks
        emptyDir:
          medium: "Memory"
      restartPolicy: Never

```

Basically, you probably want to ensure:

- rally is running in your k8s cluster as a Pod
- it can connect to Elasticsearch (here we use the existing `es-bench-http` service of an Elasticsearch cluster named `es-bench`) with the cluster password and the `elastic` user

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 8:11am UTC](https://discuss.elastic.co/t/rally-for-eck/246912/3 "2022-11-04T08:11:56Z")

</div>


