While using NGINX reverse Proxy as a Sidecar container for your microservice, We often use localhost to connect to the application container on the same POD but it can potentially harm your application availability in certain systems and lead to a lot of 502 or connection refused issues Here is[...]
Read moreCategory: Kubernetes
How Kubernetes Replicasets help as a Version Control | Devops Junction
Do you know Kubernetes replica sets can be used as version control or revision control system? If you have used the kubectl rollout command to check the revisions of the deployment. or to undo the last deployment, you might already be aware that the deployments do track the last 10[...]
Read moreKubernetes Service - Basics with Examples | Devops Junction
In the world of Kubernetes, Services are the backbone of networking. there are multiple types of services in Kubernetes Every Service is different and used for different use cases, In this article I am trying to talk about the Fine-grained details of each service. If you are a Kubernetes practitioner[...]
Read moreKubernetes CronJob - How to handle concurrency and duplicates | Devops Junction
Kubernetes cronjobs are useful to schedule a task to run at a specific time just like the crontab in Linux Just like any scheduling, Kubernetes cronjobs comes with a set of advanced features which can be configured to an optimal level. Before you are using Kubernetes cronjobs in production, please[...]
Read moreKubernetes Headless Service - Introduction and examples | Devops Junction
Kubernetes headless service is a Kubernetes service that does not assign an IP address to itself. Instead, it returns the IP addresses of the pods associated with it directly to the DNS system, allowing clients to connect to individual pods directly. This means that each pod has its own IP[...]
Read moreKubectl PortForward Examples - How to PortForward in K8s | Devops Junction
Kubectl is a command-line tool used for managing Kubernetes clusters. It provides a way to interact with the Kubernetes API, deploy applications, and monitor resources running on a Kubernetes cluster. One of the valuable features of kubectl is the port forwarding functionality, which allows users to access services running inside[...]
Read moreK8s Probes - Liveness, Readiness, Startup Examples | Devops Junction
Kubernetes probes are a mechanism for determining the health of a container running within a pod. Kubernetes supports three types of probes: Liveness, Readiness, Startup. Each of these probes serves a different purpose and helps Kubernetes manage the container lifecycle. In the following diagram, I have tried to represent the[...]
Read moreKubectl Scale down Pods and Save Cost - Kubernetes | Devops Junction
As the industry is going heavy on Kubernetes, as more and more monoliths are converted to microservices and onboarded to Kubernetes, as the number of namespace and nodes increase in your Kubernetes cluster, the cost of running Kubernetes would also increase proportionally There are a lot of cost optimization ideas[...]
Read moreWhy Failed or Evicted pods are not deleted and How to delete them
In Kubernetes, Evicted or Failed Pods are not cleared until the sum of total terminated pods reaches a certain number This numeric value is by default set at 12500 on standard Kubernetes including managed services like EKS, AKS, GCP etc and it is set at the Control Plane level as[...]
Read moreWhy we need POD in Kubernetes | Devops Junction
In this article let us explore the reasons why we need POD in Kubernetes and why cannot we deploy the container directly to Kubernetes. Before we start with our reasoning, Let us refresh our memory with what is POD POD ( as in a pod of whales or a pod[...]
Read more