Repository navigation
K8s Investigation
Josemalyson Oliveira edited this page Jun 27, 2026
·
1 revision
360-degree deep investigation for Kubernetes clusters and VPS servers.
Orchestrates 12 elite tools for Root Cause Analysis, Kernel Performance, Runtime Security, and Pentesting.
- Investigating cluster issues
- Security audits
- Performance analysis
- Incident response
- Compliance checks
- "Investigate my cluster"
- "Security audit for K8s"
- "Performance is slow"
- "Check for vulnerabilities"
- "Audit this VPS"
| Category | Tools |
|---|---|
| Observability | Glances, Netdata, Popeye, K9s |
| Network & Tracing | Kubeshark, bpftrace |
| Vulnerability & Compliance | Trivy, Kubescape, kube-bench, Lynis |
| Active Defense | Falco, kube-hunter |
Objective: Understand current state
Tools:
- Glances — System metrics (CPU, memory, disk, network)
- Netdata — Real-time monitoring dashboard
- Popeye — Kubernetes cluster scan
- K9s — Interactive cluster dashboard
Commands:
# System overview
glances -1
# K8s cluster scan
popeye -o html
# Interactive dashboard
k9sObjective: Analyze network traffic and identify bottlenecks
Tools:
- Kubeshark — L7 traffic analysis
- bpftrace — Kernel-level tracing
Commands:
# Capture traffic
kubeshark tap
# CPU profiling
bpftrace -e 'profile:hz:99 { @[kstack] = count(); }'Objective: Identify security issues
Tools:
- Trivy — CVE scanning
- Kubescape — NSA/CIS benchmarks
- kube-bench — CIS Kubernetes benchmark
- Lynis — OS hardening audit
Commands:
# Image scanning
trivy image nginx:latest
# Cluster compliance
kube-bench run
# OS audit
lynis audit systemObjective: Detect and respond to threats
Tools:
- Falco — Runtime security events
- kube-hunter — Internal pentest
Commands:
# Runtime monitoring
falco
# Pentest
kube-hunter --remote 10.0.0.0/24An interactive HTML report (/tmp/investigation/ultimate_report.html) with:
- Executive RCA tab — Root cause analysis summary
- Threat Intelligence dashboard — Security findings
- Deep Performance metrics — Performance analysis
- Runtime Security events — Active threats
- Risk score — 0-100 rating
-
generate_report.py— 1048-line Python report generator -
install_tools.sh— Auto-installs 9 tools to~/.local/bin -
k8s-playbook.md— K8s triage reference (383 lines) -
vps-playbook.md— VPS/Linux investigation reference (431 lines)
# Install all tools
./install_tools.sh
# Run investigation
python generate_report.py --cluster my-cluster
# View report
open /tmp/investigation/ultimate_report.html- K8s-Investigation-Playbook — Detailed K8s investigation guide
- K8s-Investigation-VPS-Playbook — VPS/Linux investigation guide
- K8s-Investigation-Tools — Tool installation and configuration
Last updated: June 2026