Hi All,
I am trying to deploy esrally in kubernetes cluster and below is the manifest I have created,
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: esrally-claim
spec:
storageClassName: db
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
kind: ConfigMap
apiVersion: v1
metadata:
name: esrally-trackparams-cfg
data:
params.json: |
{
"number_of_shards": 20,
"number_of_replicas": 0,
"ingest_percentage": 100,
"bulk_size": 10000,
"bulk_indexing_clients": 8,
"index_settings": { "refresh_interval":-1 }
}
---
apiVersion: batch/v1
kind: Job
metadata:
name: esrally
spec:
template:
spec:
initContainers:
- name: logrotate
image: ubuntu:18.04
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args: ["-c", "mv /data/logs/rally.log /data/logs/rally.log.$(date +%s) || true"]
volumeMounts:
- name: esrally-data
mountPath: /data/
containers:
- name: esrally
image: elastic/rally:2.2.0
imagePullPolicy: IfNotPresent
args: ['--track=nyc_taxis',
'--pipeline=benchmark-only',
'--challenge=append-no-conflicts-index-only',
'--client-options="use_ssl:false,verify_certs:false"',
'--track-params=/rally/params.json',
'--target-hosts=https://admin:XXXX@es-client-service:9200']
volumeMounts:
- name: esrally-data
mountPath: /rally/.rally
- name: trackparams-cfg-vol
mountPath: /rally/params.json
subPath: params.json
imagePullPolicy: Always
restartPolicy: Never
volumes:
- name: esrally-data
persistentVolumeClaim:
claimName: esrally-claim
- name: trackparams-cfg-vol
configMap:
name: esrally-trackparams-cfg
When I am trying to bring up the pod, I am getting the below error in logs,
[root@k8master1 prometheus-grafana]# kubectl logs esrally-4gv2z -n es -f
usage: esrally [-h] [--version]
{race,list,info,create-track,generate,compare,download,install,start,stop}
...
esrally: error: unrecognized arguments: --track=nyc_taxis --pipeline=benchmark-only --challenge=append-no-conflicts-index-only --client-options="use_ssl:false,verify_certs:false" --track-params=/rally/params.json --target-hosts=https://admin:XXXX@es-client-service:9200
Please correct me if I am doing anything wrong and share your thoughts it would be really helpful.
Thanks,
Ganeshbabu R