Actual
As make run-local fires up the server, the server is capable of loading the local Kube config on the user's machine.
But for mesheryctl, the user has to manually select the Kube-config to load up the Kubernetes.
Expected
Mesheryctl should also be able to detect Kube-config.
Ho do you set up the kubeconfig location currently in mesheryctl? Is this a flag or read from the KUBECONFIG env variable? Can't seem to find it (albeit I am on the phone app) @kushthedude
Hi @nitishm
localhost:9081/settingsPlease let me know if you have more doubts regarding the same.
So the ask is that it autodiscovery the kubeconfig based ok either the default location if no env provided or loads it from the env car if set. Is that correct?
@leecalcote @kushthedude Do we want to mount the kubeconfig as a volume to the meshery docker container if found on the users system?
mesheryctl start invokes a docker-compose command. I suppose if the config is found we should load it into the meshery container and populate the Preference model with the k8sconfig based on the mounted kubeconfig. Is my understanding accurate?
tagging @kumarabd
@nitishm There can be two scenarios in this case:
I would strongly recommend the second one. @leecalcote @kushthedude Wanted your thoughts on these.
@kumarabd Yes, #2 is how Meshery was previously functioning. This bug is a regression issue. Ideally, we'll reinstate the functionality as described in #2. You're right - this is why we mount the $HOME/.kube directory in the Dockerfile.
Most helpful comment
@nitishm There can be two scenarios in this case:
I would strongly recommend the second one. @leecalcote @kushthedude Wanted your thoughts on these.