Profiling a pod in Kubernetes with kubectl flame
Kubectl flame is a plugin for kubectl that allows you to profile applications in production with low overhead by generating FlameGraphs. It is a Yahoo project. It is installed via krew, the plugin manager for kubectl, and allows you to generate FlameGraphs for applications in Go, Java (all JVM languages), Python, Ruby, and NodeJS. After installing krew, you can install flame via: kubectl krew install flame. For each supported language, it will use a different profiler to generate a FlameGraph….