astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.16k stars 140 forks source link

Startup namespace #77

Open lucidyan opened 4 years ago

lucidyan commented 4 years ago

Is there any cli flag to pass to kubebox that can select the namespace that opens at startup? It’s very annoying that every time you have to open the necessary namespace manually.

astefanutti commented 4 years ago

The default namespace is taken from the current context of your environment kubeconfig file. It can be changed / set with:

$ kubectl config set-context --current --namespace=my-namespace

If you use the ns plugin, you can call kubectl ns <namespace>.

That being said, we plan to provide a full-fledged CLI so that it is possible to pass options and override environment context.

ensonic commented 4 years ago

+1 We deploy a bunch of apps in namespaces each and it would be nice to pass the namespace as a flag (same for the kube context).