DEV Community

Cover image for Install Kubernetes using Minikube on Arch Linux
William Méndez
William Méndez

Posted on

Install Kubernetes using Minikube on Arch Linux

First of all, let me introduce some concepts about these technologies.

What is Arch Linux?

Archlinux

It's a versatile and flexible Gnu/Linux distribution, focused on minimalism and simplicity. In my opinion the most important feature of this distro it's called Rolling Release, this will allow you to have the most recent version of your apps. For more info go to the Arch Linux Homepage.

What is Docker?

Docker

It's a virtualization platform to deliver software as packages called containers. Containers can communicate with other containers through channels. This tool can be used to simulate the production server configs in your local machine.. More info in Docker homepage.

What is Kubernetes?

Kubernetes

Kubernetes is an open source software for automating the deployment, scaling and handling of containerized applications. It works with a large list of container tools such as Docker, Podman, etc. This software is commonly used as Platform As A Service (PAAS) and Software As A Service (SAAS) in cloud computing. More info in Kubernetes Homepage

What is Minikube?

Minikube

It's a tool for setup your local kubernetes cluster, it's multiplatform and opensoure, more info in Minikube Homepage.

Let's get started.

Sync the database and update dependencies [It's not really necessary, but why not?]

[wilo@developer ~]$ sudo pacman -Syyu
Enter fullscreen mode Exit fullscreen mode

Install minikube, and other dependencies

[wilo@developer ~]$ sudo pacman -S kubectl minikube libvirt qemu dnsmasq ebtables dmidecode
Enter fullscreen mode Exit fullscreen mode

Additionally we assing the current user to the libvirt group

[wilo@developer ~]$ sudo usermod -aG libvirt $(whoami)
Enter fullscreen mode Exit fullscreen mode

If you want to the libvirt service loads when you start your OS.

[wilo@developer ~]$ sudo systemctl enable libvirtd
Enter fullscreen mode Exit fullscreen mode

Now we start the libvirt service.

[wilo@developer ~]$ sudo systemctl start libvirtd
Enter fullscreen mode Exit fullscreen mode

Once started the service, we check the status if everything it's ok.

[wilo@developer ~]$ sudo systemctl status libvirtd
Enter fullscreen mode Exit fullscreen mode

And you see the status like this.

Libvirt status

Well..., Then we set the Kvm2 provider in minikube

[wilo@developer ~]$ minikube config set driver kvm2
Enter fullscreen mode Exit fullscreen mode

And finally start it.

[wilo@developer ~]$ minikube start
Enter fullscreen mode Exit fullscreen mode

Minikube started

Now, we probe a some kubernetes commands on our terminal using kubectl.

Kubectl command

And yeap! the installation process was successfully!, congrats! 🎉.

Top comments (0)