Skip to content

Instantly share code, notes, and snippets.

@yogeek
Created April 28, 2021 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogeek/485c49142999c328de40c181a81b5811 to your computer and use it in GitHub Desktop.
Save yogeek/485c49142999c328de40c181a81b5811 to your computer and use it in GitHub Desktop.
Thanos
initContainers:
- command:
- sh
- -c
- id; whoami; mkdir /tmp/bench; /bin/thanosbench block plan -p continuous-365d-tiny
--max-time=6h | /bin/thanosbench block gen --output.dir /tmp/bench; cp -r /tmp/bench/*
/prometheus
image: quay.io/thanos/thanosbench:v0.2.0-rc.1
name: prom-init-thanosbench
volumeMounts:
- mountPath: /prometheus
name: prometheus-k8s-db
subPath: prometheus-db
# mkdir -p $(pwd)/prom-eu1 && docker run -i quay.io/thanos/thanosbench:v0.2.0-rc.1 block plan -p continuous-365d-tiny --labels 'cluster="eu1"' --max-time=6h \
# | docker run -v $(pwd)/prom-eu1:/prom-eu1 -i quay.io/thanos/thanosbench:v0.2.0-rc.1 block gen --output.dir prom-eu1
initContainers:
- command:
- sh
- -c
- cp -r /prometheus/bench/* /prometheus
image: quay.io/thanos/thanosbench:v0.2.0-rc.1
name: prom-init-thanosbench
volumeMounts:
- mountPath: /prometheus
name: prometheus-k8s-db
subPath: prometheus-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment