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
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" ...
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
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
After that, we will check if minikube
has been set up as a cluster by running the following command:
kubectl config current-context
If successful, the output will look like this:
minikube
Top comments (0)