Articles by Rahul Shivalkar

  • 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: 2Published: 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.

  • Create Taints and Tolerations in Kubernetes

    Create Taints and Tolerations in Kubernetes

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

    Taints and tolerations work together to make sure that pods are not scheduled onto inappropriate nodes. One or more taints can be applied to a node, this means that the node should not accept any pods that do not tolerate the taints. The pods that have toleration can only be deployed on those nodes with the taints.

  • How to create Namespaces in Kubernetes

    How to create Namespaces in Kubernetes

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

    A namespace is helpful when multiple teams are using the same cluster. This is used when there is a potential of name collision. In this article, we will create a namespace and create a pod in the newly created namespace. We will also see how a namespace can be set as a default namespace.

  • How to create a Replicaset in Kubernetes

    How to create a Replicaset in Kubernetes

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

    A replica set makes sure the specified replicas of pods are always running. It can be considered as a replacement for the replication controller.