Kubernetes

Anything about kubernetes

Kubernetes: Mount multiple volumes into the same directory

We often need to mount multiple volumes into the same directory. For example, we need to mount SSL Certificate and Key into the same directory. However, the typical syntax of volumeMount would fail. To do this, projected volume needs to be used. Here is an example: Create Two secrets, we will be mounting them later …

Kubernetes: Mount multiple volumes into the same directory Read More »

How to simulate traffic in Kubernetes cluster?

This post will show the most straightforward yet extremely powerful way to simulate traffic load in your environment, including the Kubernetes cluster. We will be using fortio for traffic generation for desired duration and requests per second. To see fortio in action, let’s see an example:we assume our application is an Nginx pod and will …

How to simulate traffic in Kubernetes cluster? Read More »

Changing the traffic distribution of a Kubernetes service

In Kubernetes with the default configurations, When a deployment is exposed via a service, the traffic is distributed between the endpoints/replicas in a round-robin way. This is great for most cases; however, the cluster administrator sometimes wants a finer traffic distribution control. Kubernetes provided a few more strategies for traffic distribution among the service’s endpoints. …

Changing the traffic distribution of a Kubernetes service Read More »

Create Kubernetes cluster locally using Kubespray and libvert

This post will show a simple tool to create a Kubernetes cluster using libvert and kubespray. Libvert needs to know the introduction; if you are working on a Linux environment, you are likely a fan of libvert already. I have written a set of playbooks to leverage libvert to spawn a cluster of virtual machines, …

Create Kubernetes cluster locally using Kubespray and libvert Read More »

Kubespray advanced configuration for a production cluster

In this post, we will see some advanced options provided by kubespray for production-grade cluster creation. In most places on the internet, you will see the basic instructions to create a simple(Hello World) Kubernetes cluster using a bunch of virtual machines. However, kubespray offer much more than that. For example: 1. You can install several …

Kubespray advanced configuration for a production cluster Read More »

What is high availability, and how to make your infrastructure resilient to failures?

This post demonstrates how load balancers help achieve higher availability of the control plane nodes in a simple cluster environment. The post targets the beginner audience; with the concepts, procedure, and testing. The same concepts apply to setting up a high-available Kubernetes cluster. The post is divided into three parts; feel free to skip to …

What is high availability, and how to make your infrastructure resilient to failures? Read More »

Create Virtual Machines using virt-install(libvert) with cloud-init

This post will demonstrate creating a high-performance guest VM with cloud-init using virt-install. The Qemu/libvert/KVM stack is currently the best bet to get the near-native performance from the virtual machines. When combined with cloud-init, the stack gets more empowered and highly convenient to set up virtual machines. This is especially helpful if you require creating …

Create Virtual Machines using virt-install(libvert) with cloud-init Read More »

How to setup longhorn block storage for Kubernetes cluster

In this post, we will see how to install longhorn into your Kubernetes cluster. If you are not familiar with longhorn block storage, it is a production-ready block storage solution specially designed for Kubernetes. you can install longhorn on any managed Kubernetes cluster, on-prem, or even in your home lab. It is a lightweight solution …

How to setup longhorn block storage for Kubernetes cluster Read More »

Scroll to Top