Let’s say we have three branches feature1, 2 and master branch. Where master branch is our final branch. Git learns each branch as same. The each branch can’t see other branch commits until a merge happened. There are two ways for merging branch, once is fast-forward merge and other one is 3-way merge. Fast Forward […]
What is branch?Branch is just text reference to the commit.- Default branch is master.- Multiple branches can exists in the same repository.- Pointers for all branches are located in .git/refs/heads folder.- Current branch track new commits.- Branch pointer moves automatically after every new commit.- hange branch git checkout <branch>Now we will create a branch and below is the command to […]
Let’s consider, we have two copies of a git repo on two servers. One is on server “managed1” and “managed2”.The first issue occurred when you have made changes on managed1 and pushed it to remote. But on managed2 you haven’t pull the latest repo and committed the changes. It will give you error. On managed1: […]
Jenkins is an open source tool which is widely used for Continuous Integration and Continuous delivery. This is very famous and accepted tool in Software Development Industry. This works with others tool to develop a software fast and accuracy. Let’s install it now.We are assuming that you have internet connectivity on the machine so that […]
Docker File Docker file is basically used for automating image building. This is done via all details provided to a file which is known as Docker file.It is very useful for building images. You don’t need manual intervention to build images, upgrade it etc.You can write it anywhere in the system where you have access. […]
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 […]
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 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 […]
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 […]
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 […]
Recent Blog