Tiny container image based on Alpine base image that includes commonly used networking utilities. This image is useful for testing, debugging, and running network-related commands with in containers or Kubernetes pods.
The image includes the following tools:
curl
– Command-line tool for transferring data with URLsnetcat
(nc
) – TCP/UDP port scanner and listeneropenssl
– Toolkit for SSL/TLS and general cryptographydig
– DNS lookup utilitynslookup
– DNS query tool
You can use this image as a temporary debug pod in a Kubernetes cluster.
apiVersion: v1
kind: Pod
metadata:
name: net-utils
namespace: default # Replace 'default' with your namespace if needed
spec:
containers:
- name: tools
image: rdev2021/net-utils:latest # Or ghcr.io/rdev2021/net-utils:latest
command: ["/bin/bash"]
args: ["-c", "sleep infinity"]
restartPolicy: Never
Apply the changes to target kuberentes clusters with:
kubectl apply -f debug-pod.yaml
kubectl exec -it net-utils -- /bin/bash # Use namespace if needed
Once inside the container, you can run commands like curl
, netcat
, and others as needed.