DEV Community

Jution Candra Kirana
Jution Candra Kirana

Posted on

Kubernetes: Install Tools

Minikube

In this practice, we will be using minikube. For more details about minikube, you can check the following URL: https://minikube.sigs.k8s.io/docs/

Follow the installation steps on that website, as the documentation is clear, so no need to write it here hhi :XD.

Once installed, you can start minikube with the following command:

minikube start
Enter fullscreen mode Exit fullscreen mode

If successful, you'll see something like this:I

➜  ~ minikube start
😄  minikube v1.33.1 on Darwin 14.6.1
🆕  Kubernetes 1.30.0 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.30.0
✨  Using the docker driver based on existing profile
👍  Starting "minikube" primary control-plane node in "minikube" cluster
🚜  Pulling base image v0.0.44 ...
🔄  Restarting existing docker container for "minikube" ...
Enter fullscreen mode Exit fullscreen mode

Wait until the process finishes. Once done, you'll see the following information:

...
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Enter fullscreen mode Exit fullscreen mode

Since minikube runs on docker, you can verify it using the docker ps -a command to see that minikube will create one running container.

Note

Minikube is a tool meant for learning purposes and is designed to mimic Kubernetes as closely as possible.

Kubectl

Next, an equally important tool is kubectl. You should have kubectl installed as well. For more information and installation instructions, visit the following URL: https://kubernetes.io/docs/tasks/tools/. Follow the instructions according to your operating system.

Once installed, you can verify by running kubectl version, which should output something like this:

Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.26.1
WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1
Enter fullscreen mode Exit fullscreen mode

After that, we will check if minikube has been set up as a cluster by running the following command:

kubectl config current-context
Enter fullscreen mode Exit fullscreen mode

If successful, the output will look like this:

minikube
Enter fullscreen mode Exit fullscreen mode

Top comments (0)