https://github.com/ironcore864/kubectl-debug-pod
https://github.com/ironcore864/kubectl-debug-pod
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ironcore864/kubectl-debug-pod
- Owner: IronCore864
- License: mit
- Created: 2020-05-26T07:34:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T07:58:44.000Z (about 6 years ago)
- Last Synced: 2025-06-01T02:45:03.481Z (about 1 year ago)
- Language: Dockerfile
- Size: 140 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubectl in a Pod
## Purpose
Providing a "debug" pod for k8s users who don't have access to CLI but only access to kubernetes dashboard.
## Dependency
Kubernetes dashboard
## How it Works
It creates a pod "kubectl":
- which is runing all the time
- using minimal resources
- health/readiness check on 8080/
- the pod has permission to create and attach to a pod in the debug namespace.
In k8s dashboard you can open a terminal to this "kubectl" pod, then in the shell:
- run command `debug`, which will run a pod with shell using `nicolaka/netshoot` image for debugging network issues
- when you `exit` the shell, the debug pod will be deleted automatically
## Deploy
`kubectl apply -f kubectl.yaml`
This deploys in debug namespace, with role, rolebinding.
## Image
`ironcore864/kubectl-debug-pod:1.17.3`
## Usage


