DEV Community

loading...
Cover image for What is Minikube and Kubectl? ๐Ÿค” Setup a Minikube cluster for Kubernetes Beginners

What is Minikube and Kubectl? ๐Ÿค” Setup a Minikube cluster for Kubernetes Beginners

techworld_with_nana profile image Techworld with Nana ใƒปUpdated on ใƒป1 min read

Usually in a production cluster setup you will have multiple master and worker nodes on separate machines. ๐Ÿ’ช๐Ÿผ

But what if you want to test something on your local machine or try something out? Setting up the whole cluster would be difficult or even impossible. ๐Ÿคจ

For that use case you can use minikube: a ONE Node cluster, where the master and worker processes are on the same machine.

Kubectl, the command line tool for Kubernetes, then enables the interaction with the cluster: to create pods, services and other components.

In the below video Iโ€™ll explain everything in more detail with animations and show a demo of installing these components and start the minikube cluster.


You can follow me on Twitter and YouTube.

Discussion (2)

pic
Editor guide
Collapse
jouo profile image
Jashua

Hey Nana, sorry for bothering once again!

I finished your series, well specifically till the video "Docker vs Kubernetes vs Swarm" (since the recent videos are about Kubernetes and I'm not there yet)

Thank you for the videos, we are going to implement Docker in our little workflow this month, and hopefully Jenkins in a couple months down the road, to speed things up without worrying about compatibility issues :)

I briefly understand the concept of Swarm / Kubernetes to orchestrate multiple containers, so from that point of view those tools seem to be aimed towards big applications, is that right?

Since we are deploying web applications to local servers, I could simply deploy them with docker-compose by using the restart flag and that's about it

Could small applications take advantage of Swarm / Kubernetes?

Collapse
techworld_with_nana profile image
Techworld with Nana Author

Hi Jashua,

I'm glad my videos helped you with your project. Using docker-compose for a small project is a good idea. To your question, I suggest not to use Kubernetes or other orchestration tool for small applications, simply because of the setup overhead to benefits ratio.

If your application grows a bit more complex or you need a very high availability for your app, you could use Docker swarm, which is more lightweight than k8s or you can also use some Kubernetes as a service platform, but again here you must consider: price/benefits ratio.

Hope this answers your question :)

Regards