Connecting to your Kubernetes cluster
To interact with your Kubernetes cluster, you will need a CLI tool called kubectl. If you've already interacted with a Kubernetes cluster, you are most likely familiar with this tool. If you don't have it installed already, you can go to the Kubernetes official website and follow your operating system's installation instructions. You can find all the information needed for the kubectl
installation at https://kubernetes.io/docs/tasks/tools/install-kubectl/.
Once the tool has been installed, you can test it out with the following command:
$ kubectl version
This command should output the current version of kubectl
.
You will also need to configure kubectl
to use your existing cluster. If you are using minikube
, you can restart your cluster. When using minikube start
, it will automatically configure kubectl
for you.
For minikube
, type the following command:
$ minikube stop && minikube start
If you are...