Collection of useful command line stuff

Pod that crashes

Useful for testing monitoring tools like graphana

kubectl run crash-test-dummy --image=bash --command -- bash -c "sleep 30; exit 1"

Telnet but for secure connections

openssl s_client -connect

Show priority of all pods in kubernetes cluster

kubectl get pods -o,NAMESPACE:.metadata.namespace,PRIORITY:.spec.priority,PRIORITY_CLASS_NAME:.spec.priorityClassName -A

pod that prints egress IP

kubectl run -it --restart='Never' ipify --image=curlimages/curl --command -- curl ''