https://github.com/realorko/k8s-debugging
A convenient way of debugging a EKS cluster in aws
https://github.com/realorko/k8s-debugging
Last synced: about 2 months ago
JSON representation
A convenient way of debugging a EKS cluster in aws
- Host: GitHub
- URL: https://github.com/realorko/k8s-debugging
- Owner: RealOrko
- Created: 2021-05-20T19:41:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-21T00:36:35.000Z (about 5 years ago)
- Last Synced: 2026-01-01T21:50:17.829Z (6 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s Debugging
Every had a problem where you are trying to debug infrastructure from a EKS cluster?
Well this is the answer! :)
## Assumptions
This repository assumes you are already up and running with k8s, specifically AWS EKS. You already have [kubectl](https://kubernetes.io/docs/tasks/tools/) installed and can connect.
## Pre-requisites
Please install the following:
- [direnv](https://direnv.net/docs/installation.html)
Run `direnv allow` in the checkout directory.
## Cloning the repo
To clone and activate the repo, please run the following:
```
git clone git@github.com:RealOrko/k8s-debugging.git && cd k8s-debugging && direnv allow
```
## Up and running
- `kdeploy`: To deploy the diagnostic container in your k8s cluster.
- `kdestroy`: To destroy the diagnostic container in your k8s cluster.
## SSH into pod
To SSH into the pod for running diagnostics please run:
- `kshell`: This will give you a bash shell into the container.
## What's available
- [dnsutils](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L14)
- [https://packages.ubuntu.com/focal/dnsutils](https://packages.ubuntu.com/focal/dnsutils)
- [netcat](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L15)
- [https://packages.ubuntu.com/focal/netcat](https://packages.ubuntu.com/focal/netcat)
- [traceroute](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L16)
- [https://packages.ubuntu.com/focal/traceroute](https://packages.ubuntu.com/focal/traceroute)
- [curl](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L17)
- [https://packages.ubuntu.com/focal/curl](https://packages.ubuntu.com/focal/curl)
- [wget](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L18)
- [https://packages.ubuntu.com/focal/wget](https://packages.ubuntu.com/focal/wget)
- [unzip](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L19)
- [https://packages.ubuntu.com/focal/unzip](https://packages.ubuntu.com/focal/unzip)
- [nano](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L20)
- [https://packages.ubuntu.com/focal/nano](https://packages.ubuntu.com/focal/nano)
- [busybox](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L21)
- [https://packages.ubuntu.com/focal/busybox](https://packages.ubuntu.com/focal/busybox)
- [psmisc](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L22)
- [https://packages.ubuntu.com/focal/psmisc](https://packages.ubuntu.com/focal/psmisc)
- [lynx](https://github.com/RealOrko/k8s-debugging/blob/13e10e09702937aa6b8df38b15a16f3881a0ff4b/Dockerfile#L29-L32)
- [https://packages.ubuntu.com/focal/lynx](https://packages.ubuntu.com/focal/lynx)