In this chapter, we will show you how to install Kubernetes on your device. To install Kubernetes on your laptop or device is to use these 2 applications:
You can run Kubernetes on your Laptop or device by using the features provided by docker directly, Oh yes, the steps below are for the Windows Operating System, for other OS can be adjusted to other tutorials on the internet. Here are the steps :
Download File Installer Docker Desktop
Go to the official Docker page (Docker Official Page) and download the Docker Desktop installer, make sure it's for Windows, as shown in the picture :
Install Docker Dekstop
Install according to the provisions and descriptions on the display using the downloaded .exe
installer file.
In this step, please adjust to the installation menu, there is no specialization for Kubernetes
Open Docker Desktop Settings and Enable Kubernetes
Go to the Kubernetes section and make sure it is checked :
Wait for the Kubernetes Installation Process
Once done, return to the main menu and Kubernetes is installed.
Minikube is highly recommended for Mac and Linux users, but is also available for Windows, and is similar to kubernetes on Docker Desktop but is accessed via Terminal or Command Prompt, you can follow these steps:
Download the installer via GitHub or their Official Website.
Install using the downloaded installer file, and make sure to pay attention to the conditions and settings of the installation process and method.
Once installed, open minkube with Command Prompt:
This method is actually for the case of Windows users who want to use Minkube powerfully or similar to the environment when deploying applications, and the benefit of using a virtual machine directly does not damage your Windows (if something happens). And this documentation will fully use this method in the future. To use VM in Minikube, make sure to do the following steps:
Make sure you have VirtualBox
This is clear, because to set up and place the Virtual Machine, we use the lightweight and free VirtualBox. Download it on the official site and make sure it is installed properly.
Also download ISO Image of Linux OS
Here, for the Linux that you want to install, you can do it as you wish. But from the author, I will use Debian Server 12 as well as the tutorial in the future. Please be able to adjust.
Install Virtual Machine with the downloaded Linux Image, install it in VirtualBox with the configuration as below :
The above configuration is based on the author, if there are additional or different configurations, you can adjust them.
If you done with Installing Virtual Machine, you can use SSH so you can copy paste the command bassed on this tutorial
If Linux is installed and ready, do an update and upgrade with the following command:
If you have done a reboot:
Install Docker to support Kubernetes
Install Docker with the latest version
Add your local user to docker group so that your local user run docker commands without sudo.
Verify docker service is running.
Install Minikube
To download and install minikube binary, run following commands.
Check minikube version.
Install kubectl tool
Kubectl is a command line tool, used to interact with your Kubernetes cluster.
Next, set the executable permission on it and move to /usr/local/bin
Verify the kubectl version.
Start Minikube cluster
Now that Minikube is installed, start a Kubernetes cluster using the following command.
If you firstly in Minukube, it will downloading some file, you can wait until done :
After minikube has started, verify the status of your cluster.
The Kubernetes Virtual Machine is ready to use.