Skip to content

Instantly share code, notes, and snippets.

@luizfnunesmarques
Last active July 23, 2021 10:06
Show Gist options
  • Save luizfnunesmarques/83085de2d0f618a1797e8da438a39ecc to your computer and use it in GitHub Desktop.
Save luizfnunesmarques/83085de2d0f618a1797e8da438a39ecc to your computer and use it in GitHub Desktop.
# I wanted to generate 100 replicasets to check and overload etcd
# the manifest is a deployment with a template variable that apply a change worth a new rs (e.g. a image tag)
for I in $(seq 30 70); do export I && envsubst '$I' < <manifest.yml> | kubectl apply -f - && sleep 10; done;
# bombard an api with curl. Requires seq and gnu-parallel
seq 1000 | parallel -n0 "<request>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment