1Panel-dev / webkubectl

Run kubectl command in Web Browser.
Apache License 2.0
854 stars 120 forks source link

Connect directly to terminal without import kubeconfig #28

Closed ndhieuops closed 1 year ago

ndhieuops commented 2 years ago

Hello, guys! Hope you have a good day ! I have the wonder like how to access the terminal without manually importing the kubeconfig file. The big idea is i already have some kubeconfig file in the local OS and the webkubectl will import these file and auto create some session and my job is simply click on connect and access into the cluster ! ( For example i have a lot of kubeconfig file and what if i import manually. It will take a lot of time)

liqiang-fit2cloud commented 2 years ago

For example i have a lot of kubeconfig file and what if i import manually. It will take a lot of time

Ok... I think batch upload will solve your problem.

ndhieuops commented 2 years ago

Thank @liqiang-fit2cloud for answer !

Yeah i got your point but it doesn't solved my problem because what if i have maybe 300 or 400 kubeconfig file (example). Actually i can do it step by step and one by one but i just want to upgrade our job like everything will be automation.

I have the directory and in this directory will have 400 kubeconfig file (example) i will create multi container and each container will manage some session (maybe 50 or 100 session). And each container will mount some kubeconfig file in some directory i defined so that i can access into the session without import manually

ndhieuops commented 2 years ago

@liqiang-fit2cloud @wan92hen did anyone have any recommendation please !! i'm so appreciate that !!

liqiang-fit2cloud commented 2 years ago

Hi, we have no idea about this for now as it's different from our original intention, mayb will pass this scene.

ndhieuops commented 2 years ago

Okay !! Thank you very much