Comments (9)
If contents for this window is provided from kube/config then rewriting it to show list with names and urls to cluster along with +/- buttons which would then literally add or remove configs to/from kube/config would be enough I suppose.
I wish my skill in node was higher so I could help here...
from kubebox.
Hi thanks for the feedback.
We've have somehow divided the context management in two separate dialog:
- Pressing the
l
key to browse and change contexts - Pressing the
n
key to switch between namespace
Let us know if the dialog open with the l
key meets your need. Otherwise, it may be useful to have a dialog closer the what kubectl config get-contexts
outputs.
from kubebox.
Nope. When I press "l" (lowercase L) i get a dialog which shows login instead of list of contexts.
I use AKS (Azure Kubernetes Services) and config is put there by "az aks get-credentials -n AKS_NAME -g AKS_RESOURCE_GROUP" so I don't operate usually on tokens etc...
I mean:
kubectl config get-contexts -o name
Can output of above command be put in a box like switching between namespaces is organized?
Or if not possible to call different command then above command just read ~/.kube/config which is written in yaml format and just extract:
- contexts.context.name and if possible also contexts.context.namespace
- current-context
from kubebox.
Actually, from the login dialog (open by pressing the l
key), you can browse and switch context using the left and right arrow keys. I plan to make that more obvious from the UI, and provide more fields for the contexts in addition to username / password / token.
I'm not familiar with AKS, but if it uses the az aks get-credentials
command as exec
field from the user Kube config to retrieve the token, this is something that has yet to be supported by Kubebox as in #32.
from kubebox.
No. az aks get-credentials will connect to azure and download from it credentials which are needed to connect to cluster. It will also append them to kube/config automatically.
So what is only required is just to read the kube/config file and use credentials stored there.
from kubebox.
Then, you should be able to find the corresponding context in the login widget with the left and right arrow keys.
from kubebox.
Ok. They're there. Thx.
But even then if possible, selecting connection from list like namespaces are shown is much more convenient.
from kubebox.
Yes, I agree it's not very convenient, especially as the number of contexts increases. We need to improve the UI for browsing / switching contexts. Thanks for the feedback.
from kubebox.
Yes, the content of the login widget is sourced from the kubeconfig file. It's just a matter of improving the UI.
from kubebox.
Related Issues (20)
- Copy/Paste not working HOT 3
- CPU limits wrong HOT 8
- Unable to run kubebox on MacOS Big Sur HOT 7
- remember last focused element when switching views HOT 1
- Logs not updated HOT 9
- Add a Kubebox version option HOT 1
- terminal does not support input Chinese words ??? HOT 2
- Unable to locate cAdvisor pod on node HOT 2
- "Resource usage metrics unavailable" after deploying cAdvisor daemonset HOT 15
- Unable to login in to the webconsole HOT 8
- Kubebox base uri HOT 4
- I can't get it to run on my desktop computer. Throws "TyperError: require(...).runMain is not a function" HOT 3
- Throw error "Cannot read property 'isAlt' of undefined" after run with built binary file HOT 7
- Can't run version 0.10.0 on Windows 11 HOT 3
- cAdvisor daemonset not working anymore with k8s >= 1.25 HOT 1
- Bug in isLocalStorageAvailable function
- I can't scroll the logs using shortcuts on Lubuntu HOT 3
- Install PyInstaller pip install pyinstaller Create single file executable: pyinstaller --onefile kubeterminal.py Binary file is located: dist/kubeterminal if building on Windows, file has .exe suffix. Or, to create Linux executable using Docker: Execute script: create_linux_exe.sh The executable is copied current directory. HOT 2
- Add tab key as key bind to toggle between 'pods' and 'log' HOT 3
- How to enable auth on kubebox running under kubernetes ? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubebox.