/nettools

Container image with network tools for troubleshooting Kubernetes clusters

Primary LanguageDockerfileGNU General Public License v2.0GPL-2.0

Docker build Docker status Docker pulls

nettools

Container image with network tools for troubleshooting Kubernetes clusters

To check some networking issues in a cluster:

kubectl run -it --image=jrecord/nettools nettools --restart=Never --namespace=default

Or you can keep the following yaml file handy and run it in a pod

kubectl apply -f nettools.yaml

and login to the container

kubectl exec -it nettools bash --namespace=default

Pod template example:

apiVersion: v1
kind: Pod
metadata:
  name: nettools
  namespace: default
spec:
  containers:
  - name: nettools
    image: jrecord/nettools:latest
    command:
      - sleep
      - "3600"
    imagePullPolicy: IfNotPresent
  restartPolicy: Never

If you just want to use the network tools on a docker host:

docker run -it jrecord/nettools