yahoo / kubectl-flame

Kubectl plugin for effortless profiling on kubernetes
Apache License 2.0
785 stars 94 forks source link

Profiling failed #41

Open chuan-T opened 3 years ago

chuan-T commented 3 years ago

I'm trying to use the flame with a go 1.13 image running into a GKE cluster, but every time I try to run the profiling I got the error bellow

kubectl flame k8slearning-6744c89ff5-vsxsq -n liuchuan -t 10s --lang go -f /Users/liuchuan/Desktop/flamegraph.svg --pgrep web Verifying target pod ... ✔ Launching profiler ... ✔ Profiling ... Error: profiling failed: exit status 1

Looking into the failed POD logs I got the error bellow

{"type":"progress","data":{"time":"2021-02-21T14:14:28.537218275Z","stage":"started"}} {"type":"error","data":{"reason":"profiling failed: exit status 1"}}

anyone can help me?

lhotari commented 3 years ago

@chuan-T One thing to check is the container runtime. kubectl-flame currently supports docker container runtime. It says on "Starting with GKE node version 1.19, the default node image for Linux nodes is the Container-Optimized OS with Containerd (cos_containerd) variant instead of the Container-Optimized OS with Docker (cos) variant." (https://cloud.google.com/kubernetes-engine/docs/concepts/using-containerd)