Last active
September 17, 2019 20:26
-
-
Save kennonkwok/cec68a576dc006a75bf4c1da416f1473 to your computer and use it in GitHub Desktop.
k8s/jmeter demo script
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
# 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