kubectl-flame icon indicating copy to clipboard operation
kubectl-flame copied to clipboard

Bug: ShareProcessNamespace and HostPID cannot both be enabled

Open byangtri opened this issue 4 years ago • 0 comments

Command used kubectl flame pod -t 1m --lang java -f flamegraph.svg

Error Error creating: Pod "kubectl-flame-c3eb2760-35f7-4ba3-9ee5-df31432682e2-vznhn" is invalid: spec.securityContext.shareProcessNamespace: Invalid value: true: ShareProcessNamespace and HostPID cannot both be enabled

From Kubernetes Docs, PodShareProcessNamespace is set to true by default as it is in GA since Kubernetes version 1.17. Therefore Kubectl Flame will not work with flag hostPID: true on recent Kubernetes versions https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/

byangtri avatar Feb 17 '22 04:02 byangtri