Appendix A. Using kubectl with multiple clusters
A.1. Switching between Minikube and Google Kubernetes Engine
The examples in this book can either be run in a cluster created with Minikube, or one created with Google Kubernetes Engine (GKE). If you plan on using both, you need to know how to switch between them. A detailed explanation of how to use kubectl with multiple clusters is described in the next section. Here we look at how to switch between Minikube and GKE.
Switching to Minikube
Luckily, every time you start up a Minikube cluster with minikube start, it also reconfigures kubectl to use it:
$ minikube start Starting local Kubernetes cluster... ... Setting up kubeconfig... ❶ Kubectl is now configured to use the cluster. ❶
- ❶ Minikube ...
Get Kubernetes in Action 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.