Articles by Rahul Shivalkar

  • Network Policy in Kubernetes

    Network Policy in Kubernetes

    Author: Tags: Comments: 0Published: Aug 05, 2020

    By default, pods accept traffic from any source. A network policy helps to specify how a group of pods can communicate with each other and other network endpoints.

  • Storage in Kubernetes

    Storage in Kubernetes

    Author: Tags: Comments: 0Published: Aug 04, 2020

    Data cannot be stored in the pod, when the pod is deleted or is terminated the data within it does not stay on the system. To provide long-term and temporary storage to Pods in the cluster, Kubernetes provides different types of storage mechanisms.

  • Cheat Sheet for Kubernetes Commands

    Cheat Sheet for Kubernetes Commands

    Author: Tags: Comments: 0Published: Jul 30, 2020

    While working on Kubernetes it is very important that you know at least the basic commands. In this article, you will find the commands which are needed most of the time while working on the cluster.

  • Jobs in Kubernetes

    Jobs in Kubernetes

    Author: Tags: Comments: 0Published: Jul 28, 2020

    A job creates one or more Pods to perform a particular operation and ensures the pods successfully terminate. When a specified number of pods successfully complete, the job is complete. When a job is deleted, it deletes the Pods it created. A Job can also be used to run multiple Pods in parallel.

  • Resource Limits in Kuberenetes

    Resource Limits in Kuberenetes

    Author: Tags: Comments: 0Published: Jul 23, 2020

    In this article, we will see an example of a resource limit and request for CPU and Memory. We will also use Metric Server. The Metrics Server is an aggregator of resource usage data in the cluster and it is not deployed by default in the cluster. We will use this Metric Server to see the resource consumption by pods.

  • InitContainers in Kubernetes

    InitContainers in Kubernetes

    Author: Tags: Comments: 0Published: Jul 21, 2020

    Init containers are used to set up custom code that is not present in an app image. Init containers can be used to offer a mechanism to block or delay app container startup until a set of preconditions are met.

  • How to create Multi-Container Pods in Kubernetes

    How to create Multi-Container Pods in Kubernetes

    Author: Tags: Comments: 0Published: Jul 20, 2020

    Pods usually have a single container i.e. single container pods are the most common use case and it is not necessary to have a single container in the pod. One of the reasons to use a multi-container pod is simpler communication between containers. In this article, we will create a pod with 2 containers inside it. This example will help to understand the creation of a pod with multiple containers.

  • How to use Node Selectors in Kubernetes

    How to use Node Selectors in Kubernetes

    Author: Tags: Comments: 0Published: Jul 16, 2020

    We can restrict a Pod to only be able to run on a particular Node. In this article, we will create pods to see them get deployed on the worker as well as the master node, then we will attach a label to the master node and point pods to get deployed on the master node only using the nodeSelector.

  • Rolling Updates and Rollbacks in Kubernetes

    Rolling Updates and Rollbacks in Kubernetes

    Author: Tags: Comments: 0Published: Jul 10, 2020

    In this article, we will update the deployment with the default Rolling update strategy and rollback the deployment. To rollback the deployment, we will use the incorrect image in one of the updates to the deployment.

  • Labels and Selectors in Kubernetes

    Labels and Selectors in Kubernetes

    Author: Tags: Comments: 0Published: Jul 08, 2020

    Labels can be used to organize and to select Kubernetes objects. In this article, we will create a Pod with Labels to it and redirect the requests to it from the service using Selector. We will also perform get, delete operations on Pod and Service using Label/Selectors on the command line.