Kubernetes Resource Quota

Quota in Kubernetes is very helpful in administrating the deployments. We can decided these at Deployment level and namespace level as well. We can also configure at Objective level like Pods, RC or RS. Users can work in different name space with different resource quota and can decide what can be useful for app or […]

Pod Scheduling

Pod scheduling is the the process of assigning nodes to pods in kubernetes cluster. Kubernetes scheduler service is responsible for finding nodes to run pods. We have few types of Pod Scheduling. Types of Pod Scheduling 1. Node Name based scheduling2. Node Label and Node Selector based scheduling3. Taint and toleration based scheduling Node Name […]

Deployments in Kubernetes

What is Deployments in Kubernetes? A deployment in kubernetes is basically a resource objects that provides declarative updates to applications. You can set images, life cycle of a pods, how many replicas will be running etc. We work to match application current state to desired state. Deployments are a higher-level resource that manages ReplicaSets and […]

Installation of Kubernetes Cluster on Ubuntu

Hosts Details for Kubernetes Cluster For configuring Kubernetes Cluster, we are having 1 Master and 3 Worker nodes. Master Node: kb-master.kb.comWorker Node1: worker1.kb.comWorker Node2: worker2.kb.comWorker Node3: worker3.kb.com Prerequisite before installation of Cluster Step1: Set hostname of all servers and make entry in /etc/hosts so that all servers can communicate each other via names.​ root@kb-master:~# cat […]

Docker Inspect

Docker inspect command is very useful to provide detailed information about any container. It provides all information related to image, volume etc. without login into container.You can find out each details you needed. # docker inspect container (Put container’s actual name or ID of the container you want to inspect) # docker inspect ubuntu:latest (To […]

Python Script to install multiple rpm packages

To install packages in Linux using python, you need to use “subprocess” module. Below is a script to install multiple packages. import subprocess def rpm_install(package_list): for package in package_list: try: subprocess.run([‘sudo’, ‘yum’, ‘install’, ‘-y’, package], check=True) # For DNF, use the following line instead: # subprocess.run([‘sudo’, ‘dnf’, ‘install’, ‘-y’, package], check=True) print(f"Package {package} installed successfully.") […]

Introduction to YAML

YAML stands for “YAML Ain’t Markup Language” or sometimes “YAML Ain’t a Markup Language”. It is simple, text-based and human readable format. It is very easy to understand.It is a data serialization language. It is vastly used in DevOps. It also works in promgramming language like python, Go, etc. If you see DevOps tools, it […]

Docker Images

Docker is a platform for developing, shipping and running applications inside a containers. Docker images are those templates which can be used by you to run applications.You can use below link for installing docker on ubuntu system. Install Docker on Ubuntu OS Now we will go through docker commands. This page will show you about […]

How to update puppet certificate on puppet client?

You can use below command to update puppet client certificate using below commands. Go to your puppet master and clean client certificate: # puppetserver ca clean <hostname> Now login to client and run below commands: # systemctl stop puppet # rm -r /var/lib/puppet/ssl # systemctl start puppet On Server go and register if needed: # […]

Git

Git is a distributed version control system (DVCS) that is widely used for tracking changes in source code during software development. Git was initially designed and developed by Linus Torvalds for Linux kernel development. It is a free software distributed under the terms of the GNU General Public License version 2. Git is distributed version-control […]