Appendix B. Setting the context for a kind cluster

This appendix shows you how to set the context in a Kubernetes cluster with multiple kubeconfig files. You will learn how to use kubectl config to determine which context you are currently in and how to switch to a different context, which should help you to become comfortable accessing multiple clusters for the CKA exam.

B.1 Setting the context with kubeconfig

As you learned in chapter 3, you can have multiple kubeconfig files that pertain to different clusters, or you can merge all the cluster-access information into one kubeconfig file. You can now read the individual kubeconfig file and its contents. This kubeconfig file (named admin.conf) is located in the /etc/kubernetes/ directory. During ...

Get Acing the Certified Kubernetes Administrator Exam now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.