Docker image that do nothing but have many tools to investigate network issues
376
This image does absolutely nothing but contains many tools that can be used to diagnose network issue within pods.
Deploy the image as deamonset
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: nettools
name: nettools
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: nettools
template:
metadata:
labels:
k8s-app: nettools
spec:
containers:
- name: nettools
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: aplu/nettools:latest
securityContext:
privileged: true
dnsPolicy: ClusterFirst
tolerations:
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
updateStrategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 2
type: RollingUpdate
And execute the following command for exemple to check an https connection through all pods on your cluster which can help to diagnose network issue on one specific nodes.
for pod in $(kubectl get pod --selector=k8s-app=nettools -ocustom-columns=name:.metadata.name --no-headers ) ; \
do kubectl exec "$pod" -- sh -c 'echo "============ k8s_host: $MY_NODE_NAME ; pod _name: $(hostname -f) ==========" && curl -m 2 -s -o/dev/null https://aplu.fr' ; \
echo "return: $?" ; done
Initial release, based on debian:bullseye-20220801
Content type
Image
Digest
sha256:8e7884ed8…
Size
111 MB
Last updated
over 4 years ago
docker pull aplu/nettools