Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cdoan1/9dc6341ad218333ad352e320f01880d5 to your computer and use it in GitHub Desktop.
Save cdoan1/9dc6341ad218333ad352e320f01880d5 to your computer and use it in GitHub Desktop.
---
apiVersion: batch/v1
kind: Job
metadata:
name: es-stress
namespace: kube-system
spec:
template:
metadata:
labels:
app: es-stress
spec:
containers:
- name: es-stress
command: ["./elasticsearch-stress-test.py"]
args: [
"--es_address",
"https://elasticsearch:9200",
"--indices",
"1",
"--documents",
"5",
"--clients",
"96",
"--ca-file",
"/etc/elastic/ca.crt",
"--no-verify",
"--seconds",
"1800",
"--no-cleanup",
"--stats-frequency",
"10"
]
image: dhubchris/es-stress:0.0.3
volumeMounts:
- name: "elastic"
mountPath: "/etc/elastic"
readOnly: true
- name: "report"
mountPath: /tmp
volumes:
- name: "elastic"
secret:
secretName: "logging-elk-certs"
- name: "report"
hostPath:
path: /tmp
imagePullSecrets:
- name: "infra-registry-key"
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment