Skip to content

Latest commit

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

devtools

With Docker

  • Container's Network Namespace

    docker run -it --net container:<container_name> ghcr.io/progamesigner/devtools

  • Host's Network Namespace

    docker run -it --net host ghcr.io/progamesigner/devtools

With Docker Compose

version: '3.6'services:
tcpdump:
image: ghcr.io/progamesigner/devtoolsdepends_on:
- nginxcommand: tcpdump -i eth0 -w /data/nginx.pcapnetwork_mode: service:nginxvolumes:
- $PWD/data:/datanginx:
image: nginx:alpineports:
- 80:80

With Kubernetes

  • Use ephemeral container

    kubectl debug -it --image=ghcr.io/progamesigner/devtools --target=<pod>

  • Use pod

    kubectl run debug --rm -it --image=ghcr.io/progamesigner/devtools

  • Use pod with host network

    kubectl run debug --rm -it --overrides='{"spec": {"hostNetwork": true}}' --image=ghcr.io/progamesigner/devtools

  • Use sidecar container

apiVersion: apps/v1kind: Deploymentmetadata:
labels:
app: devtoolsname: devtoolsspec:
replicas: 1selector:
matchLabels:
app: devtoolstemplate:
metadata:
labels:
app: devtoolsspec:
containers:
- name: nginximage: nginx:stableports:
- name: httpcontainerPort: 80
- name: httpscontainerPort: 443
- name: devtoolsimage: ghcr.io/progamesigner/devtools:latestcommand:
- sh
- -c
- while true; do ping localhost; sleep 60; done
  • Use pod
apiVersion: v1kind: Podmetadata:
labels:
app: devtoolsname: devtoolsspec:
containers:
- name: devtoolsimage: ghcr.io/progamesigner/devtools:latestcommand:
- sh
- -c
- while true; do ping localhost; sleep 60; done

About

Container image with development tools, utilities to inspect cluster, and debug problems

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages