3-Kubernetes
Othertools

🚦 Popeye – Kubernetes Cluster Sanitizer

Popeye scans your Kubernetes cluster for misconfigurations, deprecated APIs, and common issues. It’s like a linter for your cluster.


1. 🔧 Installation

brew install derailed/popeye/popeye   # macOS/Linux

Or download latest binary: https://github.com/derailed/popeye/releases (opens in a new tab)


2. ⚙️ Usage

  • Run a cluster scan:
popeye
  • Save report to file:
popeye --save
  • Output in JSON/YAML:
popeye -o json

3. ✅ What It Checks

  • Dangling services
  • Deprecated APIs
  • Pods with no resource requests/limits
  • ConfigMaps/Secrets not mounted
  • Workloads without probes

4. 📑 Summary

Popeye is your K8s cluster doctor → run it regularly to spot issues before they break production.


📜 Stern – Kubernetes Log Tailing Made Easy

Stern tails logs from multiple pods/containers simultaneously, filtering by regex. Much faster than kubectl logs.


1. 🔧 Installation

brew install stern      # macOS/Linux

Or download binary: https://github.com/stern/stern/releases (opens in a new tab)


2. ⚙️ Usage

  • Tail logs of all pods matching name:
stern my-app
  • Tail logs for specific namespace:
stern my-app -n dev
  • Filter by container name:
stern my-app -c nginx
  • Show last 50 log lines + follow:
stern my-app --tail 50

3. ✅ Summary

Stern makes multi-pod debugging painless, especially with microservices spitting logs everywhere.


🖥️ kube-ps1 – K8s Context in Your Shell Prompt

kube-ps1 is a shell extension that shows your current Kubernetes context & namespace in the prompt. Helps avoid “oops, I just ran in prod” mistakes.


1. 🔧 Installation

brew install kube-ps1

Or clone repo:

git clone https://github.com/jonmosco/kube-ps1.git ~/.kube-ps1

2. ⚙️ Setup

Add to your shell profile (~/.bashrc or ~/.zshrc):

source ~/.kube-ps1/kube-ps1.sh
PS1='$(kube_ps1)'$PS1

Reload shell:

source ~/.zshrc   # or ~/.bashrc

3. 🧭 Usage

  • Prompt now shows:
(⎈ |dev-cluster:payments) user@host $
  • Change colors or toggle display:
KUBE_PS1_SYMBOL_ENABLE=false

4. ✅ Summary

  • Popeye → scans cluster for issues.
  • Stern → tails logs across pods.
  • kube-ps1 → keeps you aware of cluster/context in your terminal.

💬 Need a Quick Summary?

Hey! Don't have time to read everything? I get it. 😊
Click below and I'll give you the main points and what matters most on this page.
Takes about 5 seconds • Uses Perplexity AI