5. Run busybox

kubectl run -i --tty busybox --image=busybox -- sh

Busybox with curl can be installed

kubectl run -i --tty busybox --image=progrium/busybox -- sh
opkg-install curl

There is another debugging tool. It is called netshoot

$ kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot -- /bin/bash
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: busybox
spec:
  serviceAccountName: internal-app
  containers:
  - name: busybox
    image: nicolaka/netshoot
    args:
    - sleep
    - "1000000"

Last updated

Was this helpful?