You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
byangtri
changed the title
ShareProcessNamespace and HostPID cannot both be enabled
Bug: ShareProcessNamespace and HostPID cannot both be enabled
Feb 17, 2022
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 versionshttps://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
The text was updated successfully, but these errors were encountered: