Created
April 28, 2021 16:16
-
-
Save yogeek/485c49142999c328de40c181a81b5811 to your computer and use it in GitHub Desktop.
Thanos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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