“Management is all about working with an objective and ability to delegate resources better …”

Introduction

In this article we will cover a demo on some of the basic K8s cluster management aspects.

For this lab we need a K8s cluster and some apps deployed on the cluster. Better to have a multi worker node lab setup. We will try to use a local cluster. In this demo, I am using a cluster based on LXC. Check my previous article on setting up K8s cluster using LXC . You can also try with Kind(Kubernetes in Docker)

Lets deploy a sample nginx…


“Instead of worrying about what we cannot control, lets shift our focus on what we can create.”

Introduction

In this demo I will share my experience of creating a kubernetes cluster using kubeadm tool. The cluster will be setup using lxc machine containers. Will spin up one master and 3 worker nodes and form a kubernetes cluster. Lets go step by step and then automate the entire process.

My Lab setup

user1@k8s_cluster_demo_lab:~/lab/asish$uname -a
Linux lab 5.4.0-77-generic #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
user1@k8s_cluster_demo_lab:~/lab/asish$lsb_release -dr
Description: Ubuntu 18.04.5 LTS
Release: 18.04

About LXC

LinuX Containers (LXC) is often considered as something…


“A book is a container of ideas which can influence minds. It has no value, unless those ideas are implemented”

Introduction

In this short article I will try to explain how an LXC differs from application containers. In a nutshell, LXC is a supercharged chroot on Linux. With an LXC, you can run and isolate an entire OS. An application container such as Docker, provides portability, versioning and component reuse along with layered storage solutions.

LXC

LinuX Containers (LXC) is an operating system level virtualization method for running multiple isolated Linux systems (containers) on a single control host (LXC Host). It is…


Kubernetes is an open source container management system developed by Google. Kubernetes (K8s) cluster is a valuable tool because it abstracts away hardware infrastructure and enables the end-user to expose their infrastructure resources as a single computational resource. This computational resource can be used to run and manage microservices via container runtime solutions like Docker, containerd, rocket, etc.

K8s cluster enables utilizing resources to the fullest. It is apt for most on-premise data centers. It is also ideal for big cloud providers. It can provide platforms for deploying and managing multi-tenant applications. The main reason for the recent upsurge in…


“Love is the secret password to every soul…”

Introduction

Single Sign On (SSO) enables a user to access multiple cloud resources using an identity. It enables the user to log in once and accesses services without re-entering authentication. A single sign on is an agreement between three entities.

  1. User — A uniquely identified entity which can be a person or an automation service who try to access the service, through a UI or an api call.
  2. Identity provider (IDP) — Acts as the source of truth about the user. …


Introduction

In any SaaS-based cloud service, user management is the core functionality that determines the success of a cloud service. It is the ability of service administrators to manage and control who can access what service. It is a component of identity and access management (IAM), a framework of policies and technologies that ensure suitable access for end-users to technical resources. It covers authentication, authorization, and auditing user access for service.

In its earlier stage, user management existed as an on-prem identity management system that stored user details in a central place, and admins would add and delete users on the…


“Resilience is our ability to bounce back from life’s challenges and to thrive, grow and expand.”

HorizontalPodAutoscaler(HPA) is a sperate resource type in kubernetes, which scales the number of pods, based on CPU, Memory utilization or some custom metrics. HPA helps to optimise the number of replicas that need to be maintained in an environment for your applications, which helps in distributing load. Behind the scenes, autoscaler controller updates the replicas of k8s resource, like a deployment, replicaset or statefulset.

The value it brings to table is a more resilient application, that can take care of itself at times of…


“Behind every young child who believes in self, is a parent who believed first.” — Mathew Jacobson

Helm helps you manage and organise your applications in Kubernetes. You can group the kubernetes objects for your applications, like deployment, services, ingress etc as a helm chart and package them and distribute them. You get complete control and flexibility through its templating engine, that these artifacts can be hosted in git repositories and version controlled. This is the default choice when you progress to gitops model for continuous deployment of your applications.

But as your application grows, there will be a lot…


“If an egg is broken by an outside force, life ends. If broken by an inside force life begins. Great Things always begin from the inside.” — Jim Kwik

In kubernetes, service is an abstraction for a logical set of pods, which are grouped together using a label. This set of pods are determined by the selector. Using this selector k8s api can reach this set of pods using the service name. For these services, k8s will create a k8s endpoint object. This endpoint will have the ip address mapping of the pods. …


“True love comes with no conditions attached” …

Photo Credit : https://unsplash.com/photos/X6sb3qKjqno

Helm charts are really helpful in packaging kubernetes objects and have played an important role in continuous deployment for kubernetes. There will be times when we wish to have better control of charts mapping to respective environments and still have their sub-charts managed more efficiently. In this article, I will try to explain Helm's conditions and tagging. Unlike in personal life, helm adds value with “conditions” attached.

Defining dependencies in Helm

An umbrella chart consists of many dependent sub-charts which are stored in the charts folder in the root folder. Dependencies are…

Asish M Madhu

Passion to learn & share

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store