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

How do you give arguments to a docker container? What is CMD & ENTRYPOINT in a docker file ?

If you want to build a docker container which takes argument or needs an argument at the startup , how do you do that ? Example: We have a java program , which adds two number and we want users to pass arguments when they do docker run.. so how do we accomplish that when … Continue reading How do you give arguments to a docker container? What is CMD & ENTRYPOINT in a docker file ?

Free public APIs

As part of development or learning activities seldom, we will need APIs which can provide some meaningful data.This could be for development or learning of web applications or to build a Kafka based application using connect or streams.Below is a list of some free publicly accessible APIs, which can be used in such scenarios API … Continue reading Free public APIs

How to automatically inject tokens in postman calls without copy pasting it in every request call ??

One of the annoying task while making postman calls , is to generate the access token and then copying it and pasting it in every request call.One of the easy way to handle this is , by using the postman variables.Basically, you can generate a token or any other value and can store it in … Continue reading How to automatically inject tokens in postman calls without copy pasting it in every request call ??

What is a proxy server and what is the difference between reverse proxy and forward proxy server?

Proxy in english dictionary means a person who is given the power or authority to do something for someone elseExample: You nominating a person to be your proxy to caste a vote in your absenceIn the world of computing, proxy does something similar. It acts on behalf of another device or resource. It sits between … Continue reading What is a proxy server and what is the difference between reverse proxy and forward proxy server?

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