Articles by Rahul Shivalkar
-
Cheat Sheet for Kubernetes Commands
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 30, 2020While 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 28, 2020A 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 23, 2020In 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 21, 2020Init 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 20, 2020Pods 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 2 • Published: Jul 16, 2020We 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 10, 2020In 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 08, 2020Labels 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
Author: Rahul Shivalkar • Tags: cloud • Comments: 0 • Published: Jul 06, 2020Taints 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
Author: Rahul Shivalkar • Tags: cloud, server • Comments: 0 • Published: Jul 03, 2020A 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.