Hi! I have the many different BM K8s clusters. I want to connect that to my CS Code. Your video uses Kubernetes plugins with with built - in cluster. If I try to connect "Connect to Server" Add Friendly Name + K8s API URL. I saw the specific K8s cluster. My Q. How to create list of K8s Clusters. And so I can switch from one K8s to another.
I would recommend you learn about kubectl and how to manage your kubeconfig. Essentially your kubeconfig is your "list" of clusters you want to connect to. You can have multiple kubeconfig's, 1 for dev, 1 for staging, 1 for prod, OR you can have all clusters in one kubeconfig. VSCode uses the kubeconfig to connect to other clusters. Remember the kubeconfig has all the details like K8s API URL, friendly names , certs and all you need. So i would recommend learning how to manage your kubeconfig, add the cluster to it and let VS Code just read it
@@MarcelDempers Ok I add more K8s Clusters. Do you have the video where is instruction How did you link the code Project files to the K8s cluster? Interaction takes place through VS Code? Or through a third tool?
It is a very nice video, keep it up. It would be great if you do a video on the auto-generate of all Kubernetes components through a plugin. [example plugin: Kubernetes Code Snippet - bks]. Thank you!
Marcel great video. One question if I have a bare-metal kubernetes cluster in my local network. How do I connect to kubernetes remotely using this or another plugin?
Regardless of Kubernetes on prem or in the cloud, it's all exposed the same way via the kubernetes API. You connect using a kube config file. The same for local minikube, on-prem, azure, aws etc. If you need to expose your on-prem Kubernetes API publicly, you should consider security. K8s in the cloud is constantly patched and updated by Cloud Providers since K8s is a new popular attack surface. So make sure you protect it with either access via VPN, or an OAuth authentication in front of it, or some form of IP whitelisting at the very least.
Great question, I would assume it should. Otherwise, you can try ensure the VSCode plugin uses the same kubeconfig\kubectl as your terminal. Then perform a login first via your terminal. Once a token has been set in the config, VSCode should continue working with that token, I would imagine
Marcel sorry how do I get the github branch? is that a plugin? which one? O sorry I just saw you did a: > git clone github.com/marcel-dempers/docker-development-youtube-series.git > cd docker-development-youtube-series > code .