https://github.com/neticdk/kubernetes-debug-image
Debug image for debugging within a kubernetes cluster
https://github.com/neticdk/kubernetes-debug-image
Last synced: 5 months ago
JSON representation
Debug image for debugging within a kubernetes cluster
- Host: GitHub
- URL: https://github.com/neticdk/kubernetes-debug-image
- Owner: neticdk
- Created: 2023-07-06T08:57:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-27T13:39:15.000Z (6 months ago)
- Last Synced: 2025-11-30T06:34:25.910Z (6 months ago)
- Language: Dockerfile
- Size: 55.7 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# kubernetes-debug-image
Debug image for debugging within a kubernetes cluster.
# Debug deployment
Example of yaml file containing the deployment of debugger pods.\
Namespace needs to be changed to match the environment it's deployed in.\
Currently the image is set to the default debug-image.\
Consider adding egress rules for debugging the network. \
Default duration before container terminates is 30 minutes. \
This can be overwritten in the args field on the container. \
The time must be set in seconds.
```
apiVersion: v1
kind: Pod
metadata:
name: debug-pod
namespace:
labels:
appName: debug
netic.dk/network-rules-egress: app-name
netic.dk/network-component: other-app-name
spec:
restartPolicy: Never
securityContext:
runAsUser: 10001
runAsGroup: 30001
containers:
- name: debug-pod
image: ghcr.io/neticdk/kubernetes-debug-image:
args: ["1800"]
securityContext:
capabilities:
drop:
- "ALL"
allowPrivilegeEscalation: false
```
# Installation
Change ```tag``` to a version or set to ```latest```.\
Run below command to pull the image to docker, or set it for the deployment manifest.\
``` docker pull ghcr.io/neticdk/kubernetes-debug-image:tag ```