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

the kubernetes context not separate #199

Open
Queetinliu opened this issue Mar 24, 2025 · 0 comments
Open

the kubernetes context not separate #199

Queetinliu opened this issue Mar 24, 2025 · 0 comments

Comments

@Queetinliu
Copy link

maybe this not a problem for kube-ps1,but i think it's a limitation you must known when you begin to use kube-ps1.
how i find it?
I have four kubernetes clusters.i installed kube-ps1 on one of the cluster's master node.
I use jumpserver to login into the node.There is a namespace created on two clusters.I check the namespace on cluster1to ensure there is no pods inside the namespace,then i copy the ssh session,and switch another cluster to check pods running under the namespace.After this i went back to the previous ssh session,the shell prompt shows i'm in cluster 1,so i delete the namespace,after the command execute complete,the kube-ps1 switched to cluster 2.Oh my god,i remove namespace on the wrong cluster.so you must be careful when you use kube-ps1 on the production environment.

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