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
Category: Kubernetes
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
Kubernetes Namespaces & Kubens
As you start deploying Pods, Deployments, Services etc. on the kubernetes cluster, these objects will grow exponentially and maintaining them becomes a challenge.For example, different teams cannot create services or deployments with the same name or listing of all the pods will take time as the number of pods grow.Namespace is a kubernetes object that … Continue reading Kubernetes Namespaces & Kubens
Kubernetes Cluster & Process Flow of a POD creation
Kubernetes in a production environment will have a collection of clusters.In this kind of setup, generally one of the server will be a master node and rest of the nodes will be worker nodesMaster node does not run any workload and is in-charge of distributing tasks to the worker nodes. You can run workloads on … Continue reading Kubernetes Cluster & Process Flow of a POD creation