How to generate and configure kubeconfig files
We have to install minikube and Docker Desktop for Windows. For first time set docker context use default in the Command Prompt. Now again open the Command Prompt and execute the following commands one by one:
1. Execute the command
minikube start
2. Now write and execute the below mentioned command
minikube kubectl config view
It will take sometime to get executed. Finally it will look something like this
3. Now use the command to view the kubeconfig file
minikube kubectl config view
What is kubernetes kubeconfig ?
The container is a package that comprises code and libraries that are to be executed. Now to automate the deployment of Containers we need Kubernetes or K8s. Kubernetes or K8s is an open source that is used for the deployment of containers. It is a container orchestration platform that is used to automate the deployment of containers. They help to manage, schedule, and scale the applications. Kubernetes should be confused with cloud services. They are basically integrated with cloud services in order to generate comprehensive solutions.
If we go through the structure, Kubernetes basically makes use of clusters. Inside clusters there exists nodes or physical machines. Inside those physical machines are pods. Inside pods, there exist containers.