Posts

Showing posts with the label Kubernetes

Installing Your Kubernetes Cluster: A Comprehensive Guide

 Kubernetes is a difficult concept to learn. It has so many moving parts. But as we all know, the best way to learn a difficult concept is to practice it. It is no different for kubernetes. For that, we need a kubernetes cluster. The problem is, kubernetes is such a complicated tool that even installing it is very difficult. I will guide you through it here. What will we do? Before we do something, I like outlining what exactly we will accomplish in this blog post. We are going to install a tool called kubeadm.. What is kubeadm? If you have ever tried to install kubernetes the traditional way, you will know that the process is extremely complicated and error-prone. You will also do a lot of very complicated configuration configuration, install tools with very specific steps, and make everything work together perfectly. That is extremely difficult. This is why, over the years, there have been many other tools created to aid in this process. One of the most popular is kubeadm. How does k

Kubernetes 101: A Beginner's Guide

Kubernetes is a very important tool. Cloud Native Computing Foundation estimates that Kubernetes has a 96% market share in the container orchestration space. According to a Flexera study, 78% of small and medium sized businesses use Kubernetes. This is why learning kubernetes is imperative today. Here is a guide to the basics of Kubernetes. What is Kubernetes? Kubernetes is a container orchestration service. But that doesn't mean much, does it? Here is a more practical example. Imagine you are a server admin. you have 1 server to manage with 1 docker container. Your job is to make sure they are up. Sounds easy enough, right? Now, imagine you have 100 different containers to manage. You have to make sure they scale properly, mitigate and properly respond to failure, manage security, make updates, and do all that across all the containers. Now, let's say you had to do that across 100 servers. Sounds like a nightmare, right? Now consider that several companies run at a way bigger

K3s Installation Guide for Your Kubernetes Sandbox

  The best way to learn is by doing. Everybody knows that. That is the central idea of this blog. That means we also need a way to install and use kubernetes. This blog post is going to teach you precisely that. How to install Kubernetes? What we will do I have seen many posts that just dive straight into the content and how to install kubernetes, but they do not take the time to explain what exactly they will do in the post. While that sounds like a very trivial thing, I would have benefited hugely from knowing what exactly I was going to do. So, here it is. We are not exactly going to install Kubernetes. Kubernetes is very hard to install and configure. It is also very resource intensive. Maybe I will make a post about installing that someday. This is why we will use a distribution of Kubernetes called K3s. This is a lightweight, easy to install version of kubernetes created by a company called Rancher. Rancher is an awesome company that makes many useful, open source and enterprise

Pods to Deployments | Kubernetes Architecture Evolution

Image
When I was learning the basic kubernetes concepts, I was confused between pods, replicasets, and deployments. Each one seemed to have the other inside of it. I remained confused for a long time. I kept trying to avoid the topic. When I actually understood, it felt great. I do not want you to have that confusion when you are learning these concepts. That is why I created this post. Manifest files As we talked about in our previous post, to access your cluster, you use a tool called kubectl . While you can execute commands to deploy and manage resources, there is a better way of doing it. As you must know if you have read my posts about docker compose , Infrastructure As Code is often more efficient and easier to manage when compared to traditional CLI tools. This is why kubernetes also supports infrastructure as code. It is written in yaml. Those files are called kubernetes manifest files. It is best practice to use them. That is why we are going to be using them here. Step 1: Deploying