Sign inSign up

ogulcanaydogan/k8s-debug

By ogulcanaydogan

•Updated 7 months ago

Kubernetes pod debugging container with network and database tools

Image
0

1.4K

ogulcanaydogan/k8s-debug repository overview

⁠K8s Debug

Kubernetes pod debugging container packed with network, system, and database tools.

⁠Quick Start

# As ephemeral debug container
kubectl debug <pod-name> -it --image=ogulcanaydogan/k8s-debug

# As standalone debug pod
kubectl run debug --rm -it --image=ogulcanaydogan/k8s-debug -- bash

⁠Included Tools

⁠Network

curl, wget, nslookup, dig, traceroute, tcpdump, netcat, iperf3, ip, ss, mtr, ping, telnet, openssl

⁠System

htop, strace, lsof, ps, top, vim, less, tree, file

⁠Database Clients

psql (PostgreSQL), mysql (MySQL/MariaDB), redis-cli (Redis)

⁠Cloud & K8s

kubectl, jq, yq

⁠Built-in Commands

CommandDescription
dns-check <host>DNS lookup with nslookup + dig
port-scan <host>Scan common ports (22, 80, 443, 3306, 5432...)
conn-test <host:port>Test TCP connectivity
http-test <url>HTTP request with timing breakdown
cert-check <host>Check SSL certificate details

⁠Docker Compose Example

services:
  debug:
    image: ogulcanaydogan/k8s-debug
    command: ["conn-test", "db:5432"]
    network_mode: "service:app"

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:ab4d0e1a3…

Size

65.5 MB

Last updated

7 months ago

docker pull ogulcanaydogan/k8s-debug