Skip to content

Tools debug in k8s

Published: at 12:00 AMSuggest Changes
kubectl debug your-pod -it --image=nicolaka/netshoot
kubectl run mongodb-client \
	--image=tiennguyen47/backup-mongodb:main-3d901a68-1719911260 \
	--restart=Never \
	-- sh -c "while true; do echo 'debug' && sleep 5; done;"
kubectl run postgres-client \
	--image=tiennguyen47/backup-postgres:main-9b0f06af-1696695606 \
	--restart=Never
kubectl run debug \
	--image=tiennguyen47/alpine-tools:latest \
	--restart=Never -- sh -c "while true; do echo 'debug' && sleep 5; done;"
kubectl run spam-without-proxy \
	--image=tiennguyen47/spam:latest \
	--restart=Never \
	--env="TARGET_HOST=https://xxx.yyy" \
	--env="NUMBER_REQUESTS=300" \
	--env="CONCURRENT_REQUESTS=100" \
	--env="TIMEOUT=15s" \
	--env="METHOD=GET" \
	--env="INFINITY=true"

Previous Post
Promtail notes
Next Post
Useful Linux Commands