Docker image with admin tools to analyse K8s nodes
3.0K
K8s configuration & Docker image with admin tools to analyse K8s nodes.
Includes the following tools:
Check out to destination of your choice, e.g.
# e.g. install to your home bin folder
cd ~/bin
git clone [email protected]:fritzduchardt/k8s-admin-shell.git
chmod +x k8s_admin_shell.sh
# e.g. amend PATH for zsh
echo 'export PATH=$PATH:$HOME/bin/k8s-admin-shell' >> ~/.zshrc
source ~/.zshrc
The shell script will take care of creating the Pod, opening the shell and removing the Pod after the shell was exited.
The K8s yamls are stored in the k8s folder.
To start the shell in an ordinary Pod, e.g. for analysis of the Pod network:
./k8s_admin_shell.sh
To start the shell in a privileged Pod within the Linux namespaces of the worker nodes:
Caution: This shell will mount the file system of the K8s worker node it is deployed on. Also, it has full admin access rights and Kernel capabilities. It can modify everything!
./k8s_admin_shell.sh true
docker run --rm --name k8s-admin-shell -it fritzduchardt/k8s-admin-shell:0.1.0
# start it
docker run -d --name k8s-admin-shell --entrypoint tail fritzduchardt/k8s-admin-shell:0.1.0 -f /dev/null
# remove it
docker rm -f k8s-admin-shell
Content type
Image
Digest
sha256:9c24a17d0…
Size
82.1 MB
Last updated
almost 2 years ago
docker pull fritzduchardt/k8s-admin-shell