VMs or Containers ?? How do i choose between these 2 options ?

In the world of modern IT infrastructure, the choice between containers and virtualization can be a daunting one. Each technology offers unique advantages and trade-offs, making it crucial to have a clear decision framework to guide your choice. This blog aims to help you make an informed decision that aligns with your specific needs and … Continue reading VMs or Containers ?? How do i choose between these 2 options ?

How do you pass arguments to a POD in Kubernetes ?

In Kubernetes Pod YAML files, the "command" field tells the container what to do when the pod starts, and the "args" field gives it any parameter or augments needed. This sample java project, takes 2 number as an argument and shows the output. In case of a docker image, the way to pass command and … Continue reading How do you pass arguments to a POD in Kubernetes ?

How do you list all the PODs and containers in your Kubernetes cluster

To list all pods and containers use the below command kubectl get pods -o=custom-columns=POD:.metadata.name,CONTAINERS:.spec.containers[*].name To list all pods and containers in a given namespace use the below command kubectl get pods -o=custom-columns=POD:.metadata.name,CONTAINERS:.spec.containers[*].name -n <<namespace>> Output of the above command will show PODs and the containers against it in a tabular format. Details on what are … Continue reading How do you list all the PODs and containers in your Kubernetes cluster

What are the alternatives for Kubernetes ?

The alternatives can be categorized into these 4 categories Container as a Service (CaaS): Options in this category are services like AWS Fargate and Azure Container Instances. These cloud services manage the complexity of managing containers at scale and eliminates the need for managing or running Kubernetes. Managed Kubernetes services : Popular choices in this … Continue reading What are the alternatives for Kubernetes ?

What is HELM, why do you need it & what problem does it solve for Kubernetes?

Helm is a tool which helps to manage Kubernetes applications. Deploying applications to Kubernetes is not a simple task and some of the concepts and techniques for deploying and managing applications and services has a steep learning curve. To deploy a simple spring boot application with PostgreSQL backend, explained in blog we had to write … Continue reading What is HELM, why do you need it & what problem does it solve for Kubernetes?

What are secrets in Kubernetes & how do you use it ?

A Secret object in kubernetes contains sensitive data such as client secret, password, token or a key. Secrets provide a way to store these sensitive informations separately from Pod definitions or container images. Since these secret objects can be created independently from Pod, there is a less risk of these information being exposed during the … Continue reading What are secrets in Kubernetes & how do you use it ?

Setup of spring boot application & initialization of PostgreSQL database on Kubernetes – PART 2

In the PART 1 of this blog series, we deployed a PostgreSQL database on minikube. In this part, we will deploy spring boot application . I have mentioned in PART 1 , how to dockerize and upload the order service to docker registry. The application.properties of the service , will get the details of database … Continue reading Setup of spring boot application & initialization of PostgreSQL database on Kubernetes – PART 2

Setup of spring boot application & initialization of PostgreSQL database on Kubernetes – PART 1

How to deploy a containerized spring boot application , with PostgreSQL as database on minikube. This post will also share details on how to initialize the database with tables and data during the initialization process. Will use a spring boot application order service with a REST endpoint to fetch customer details GET /customers It uses … Continue reading Setup of spring boot application & initialization of PostgreSQL database on Kubernetes – PART 1

Why is POD the smallest deployable unit in Kubernetes and not containers??

Kubernetes does not work directly with containers, it uses POD as the smallest deployable unit.A container contains all our application code and its dependencies packaged as a single unit, but in order for Kubernetes to run and manage these containers, it needs additional features, for example restart policy which defines what to do with a … Continue reading Why is POD the smallest deployable unit in Kubernetes and not containers??

Pods & Containers in Kubernetes

A pod is a group of one or more containersA container is a package with software and all its dependencies required to run the application bundled together.Containers are grouped as pods and they are the smallest execution unit in KubernetesKubernetes work with pods.All the containers in a pod run in a shared context and are … Continue reading Pods & Containers in Kubernetes