Extend resource capacity in Kubernetes Quota

How to extend resource capacity in Kubernetes Quota? If we capacity has been exhausted and we need to extend it. We can do in two way.Vertical and Horizontal upgrade.By horizontal upgrade, you can go ahead and add one more replica to running deployment. # kubectl get pods NAME READY STATUS RESTARTS AGE varelite6-6545486c46-mj62w 1/1 Running […]

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 […]

Some Commands helpful in Bash Shell Scripts

# cat /etc/crontab (To read/print any file) # cat –n /etc/crontab (To print files with line number) # cat /etc/crontab /etc/passwd (To print multiple files together) # tac /etc/crontab (To print exact opposite output from cat command) # wc /etc/crontab (To print line, word, character count of file) # wc -l /etc/crontab (To print line […]

Basic Operators in Shell Scripting

Logical Operator or Boolean Operator: && -a {Logical AND}: Execute the command when both conditions are true || -o {Logical OR}: Any of one condition will work. ! ! {Not equal to}: Negates the result of the condition. Note: If you will use “-a, -o, !” you need to use [ ] in condition while […]

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 […]

Quotes in Bash Shell

Quotes are very crucial in Bash Shell Scripting. These are used to define and delimit strings in shell or Shell scripts. It can disable the special treatment of a special character. It is also very helpful to prevent reserved words. You can use them to run commands in shell, Processing variables in shell, etc.There are […]

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 […]

Shells in Linux

What is Shell? Shell is a command-line interpreter in Linux that provides a user interface for interacting with the operating system. It basically interprets the commands entered by the user and executes them by interacting with the system’s kernel to perform the tasks initiated by users. Shells are a very important component of the Linux […]

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 […]

Linux Terminal Shortcuts

When you work in Linux Terminal, It involves using keyboard shortcuts to perform common tasks. Here are some useful shortcuts: History Shortcuts: Up Arrow / Down Arrow: Navigate through command history. Ctrl + R: Reverse search in command history. !!: Repeat the last command. !n: Repeat the nth command in history. Navigation Shortcuts: Ctrl + […]