Kubernetes kubeconfig
What are contexts in kubeconfig file?
Context is an element present in config file that allows users to switch between the clusters. Each context has three parts: cluster name, namespace and user name.
When can we have access to config file?
When we configure access to Kubernetes cluster we can find the kubeconfig file. The path is ~/.kube/config. We can manually create the config file as well.
Why yaml file is preferred over other file formats?
Since Kubernetes follows a hierarchy of clusters, contexts and users and in order to get information at each level, yaml files serves the best purpose.
Can we specify nodes, pods etc in config file?
No we cannot specify nodes, pods in the config file. The file is explicitly used to interact with the cluster. To get information about nodes, pods we have other kubectl commands.
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.