Skip to content

Instantly share code, notes, and snippets.

@kennonkwok
Last active September 17, 2019 20:26
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 kennonkwok/cec68a576dc006a75bf4c1da416f1473 to your computer and use it in GitHub Desktop.
Save kennonkwok/cec68a576dc006a75bf4c1da416f1473 to your computer and use it in GitHub Desktop.
k8s/jmeter demo script
# Verify cluster/settings
kubectl cluster-info
kubectl get-contexts
# inspect job.yaml
# * parallelism
# * requests/limits
# * timeout
# apply job.yaml and service.yaml
kubectl apply -f job.yaml
kubectl apply -f service.yaml
kubectl get jobs
kubectl get pods
kubectl logs -f jmeter-XXXXX
# failure scenarios
# request too much memory
kubectl apply -f requestfail.yaml
# bad image name
kubectl apply -f imagefail.yaml
# repeat with deployment (with pro tip)
kubectl create deployment faildeploy --image=kennonkwok/failllll -o yaml --dry-run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment