Sign inSign up

mansoor1/k8s-debug

By mansoor1

•Updated over 5 years ago

A simple (~13MB) with curl, telnet, netstat, netcat, tcpdump and bash.

Image
0

7.3K

mansoor1/k8s-debug repository overview

⁠What is this?

A simple Dockerfile with a few debug tools installed based off of alpine

The tools installed:

  • bash
  • netcat
  • netstat
  • tcpdump
  • curl
  • telnet
  • git
  • vim
  • dig
  • golang

⁠What is the use?

I use this to quickly debug a Kubernetes cluster for network connectivity

For example, you want to verify connectivity from one Kubernetes cluster to an external service

Just run

kubectl apply -f https://raw.githubusercontent.com/MansoorMajeed/k8s-debug/master/kubernetes/pod.yml
kubectl get pod | grep k8s-debug
kubectl exec -it k8s-debug -- bash

⁠Cleanup

After use, delete the deployment

kubectl delete pod k8s-debug

Tag summary

Content type

Image

Digest

Size

253 MB

Last updated

over 5 years ago

docker pull mansoor1/k8s-debug