Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ShareProcessNamespace and HostPID cannot both be enabled #72

Open
byangtri opened this issue Feb 17, 2022 · 0 comments
Open

Bug: ShareProcessNamespace and HostPID cannot both be enabled #72

byangtri opened this issue Feb 17, 2022 · 0 comments

Comments

@byangtri
Copy link

byangtri commented 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 versions
https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/

@byangtri byangtri changed the title ShareProcessNamespace and HostPID cannot both be enabled Bug: ShareProcessNamespace and HostPID cannot both be enabled Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant