What is Deployment in Kubernetes? How to maintain a rolling update of our application?

Image for post
Image for post

Kubernetes Deployment(controller) is your buddy if you want to deploy, update , maintain your hosted application on the production server without any downtime with utmost efficiency and with the required scalability and availability

Many times while working on your production server, you may encounter an instance where you would like to push a new update of your web application, while doing so it is desired not to break the running web app and to avoid any downtime. …

Working with services in Kubernetes

Image for post
Image for post

It is not only sufficient to have skilled individuals who know their job better, how these talented individuals communicate and help each other out as a team player which makes productive work happen, is what matters the most.

In a similar fashion, deploying different types of front-end and backend applications on the server is not sufficient, it is how these applications will exchange data with each other is what makes the client server-based ecosystem function effectively. …

How Does Node affinity Work in Kubernetes?

Image for post
Image for post

Welcome to this brand new piece of working with Kubernetes series,

In the previous piece:

we discussed,

How one can allow any particular pod with a certain type of workload to be specifically scheduled on the particular Node, using the simplicity and power of nodeSelector.

Let’s revisit the example we discussed in the last piece:

apiVersion: v1
kind: Pod
name: nginx
env: staging
- name: nginx
image: nginx

size: large

Here we are trying to place our Pod, using nodeSelector key-value pair


In such a case, one thing which limits the node selector approach of placing the specific pod to a specific node is its ability to handle cases…

Node Selector & Node Affinity in Kubernetes

Image for post
Image for post

“If you stretch beyond your capacity without putting your wisdom into practice, you are bound to break ”

The same applies to our Kubernetes worker nodes. If you will try to schedule a heavy workload to the worker node of low capacity, there is a higher probability of this node filling fast and create inefficiency in the cluster. So as a Kubernetes administrator or developer what you should do?

To understand this scenario let me paint a visual picture of a hypothetical situation below:

Image for post
Image for post
Fig 1.0


In fig 1.0, there are three worker node, NODE 1, NODE 2, NODE 3.

  • NODE 1 is a high-end machine which has high storage and memory capacity
  • NODE 2 is a medium-end machine with a medium level of storage and memory capacity. …

What is Taints & Tolerants In Kubernetes and How Does It Work?

Image for post
Image for post

In general life, we often develop an affinity with people whom we like and want to engage very often, similarly, in Kubernetes, we can establish a close affinity between nodes and pods.

If you want to ensure that only a few types of pods get accommodated in any given worker Node and repelling the other pods which you don’t want to be a part of the worker Node, you can use the concept of

“Taints & Tolerations ”

Let’s Understand with mosquito & human analogy:

Suppose you don’t want the mosquito to bite you, in that case, what do you do? …

What happens if you exceed the resources request beyond what Nodes can handle in Kubernetes?

Image for post
Image for post

“Choose your resources wisely else you will be thrown out ”

This is true for Kubernetes clusters with multiple nodes too. In our part 1 of handling resources and limits in Kubernetes:

We learned

  • How to manage resource provisioning of the container in Kubernetes?
  • How to define resource requests?
  • How to define resource limits?
  • How does the scheduler handle the resource provisioning?
  • What happens if some pods or containers try to go beyond the specified resource limit defined in the pod definition?

So today we will go further to understand the few resource management scenarios given below :

  • What happens when the CPU request exceeds the available CPU resource in the given cluster node?

How to manage products effectively?

Image for post
Image for post

Plant Analogy :

Any product and its management is somewhat similar to any growing plants which bear fruits. The fruit is a product and the person who grows it is a product manager.

It starts with finding fertile land(Finding the right market/target audience), adopting best seeding practices, planting seeds, nurturing it with the right kind of water and fertilizer, monitoring the growth, trimming the unwanted branches & leaves to keep it in the right shape(Improving product based on customer feedback), plucking the fruits as it comes on the way. Continuing the discipline of caring to help it bear new fruits. …

How does Kubernetes manage the resource requirements of Pods or Containers?

Image for post
Image for post

When it comes to architecting your system infrastructure requirements as a cloud architect or system architect, you need an efficient orchestrating tool to help you achieve the required flexibility and scalability. Kubernetes orchestration platform gives you this ability and simplifies your resource management process hassle-free.

What are the Node level resources in a Kubernetes cluster?

In any given cluster with multiple nodes, there are a defined set of resources in the form of

  • CPU
  • Memory
  • Disk Spaces

CPU and memory are collectively referred to as compute resources, or just resources. These resources are measurable quantities that can be requested, allocated, and consumed.

Unit Of Resources Type:

Each of the above resource types has a base unit, let get into the details of each one by…

How to configure a service account in Kubernetes and manage it?

Image for post
Image for post

What Is Service Account in Kubernetes?

There are two types of account in Kubernetes

  • User Account: It is used to allow us, humans, to access the given Kubernetes cluster. Any user needs to get authenticated by the API server to do so. A user account can be an admin or a developer who is trying to access the cluster level resources.
  • Service Account: It is used to authenticate machine level processes to get access to our Kubernetes cluster. The API server is responsible for such authentication to the processes running in the pod

Service Account :

In the Kubernetes cluster, any processes or applications in the container which resides within the pod can access the cluster by getting authenticated by the API server, using a service account. …

How To Take Good Care Of Our Soil Health?

Image for post
Image for post

I feel

“Any country that has good soil health will be a truly wealthy country with a healthy generation and ample food to eat ”

The FAO, sited that sustainable soil management has the potential to produce up to 58% more food.

Healthy soil plays a critical role in the wellbeing of our natural environment and most importantly it enhances the ability of our farmers to grow more food for their country’s population. Soil rich in organic nutrients has the capability to reduce, soil erosion and minimizing weather-related risk. …



Everything About Artificial Intelligence | Machine Learning | Applied statistics| Data Science. Let’s learn AI & ML together

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