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
Containers and Developer Experience – 2
In the previous blog i shared how Jib, an open source tool maintained by Google accelerates the development of docker images for java based application.But if you are doing deployment in a Kubernetes environment then you should try Skaffold, another open source container tool from google which simplifies common operational tasks that you perform when … Continue reading Containers and Developer Experience – 2
Containers and Developer Experience
Packaging and shipping software as containers has numerous benefits, but doing it without the right tools and techniques leads to poor developer experience.Some of the challenges that i faced are: Local Installation of Docker : Getting Docker installed with root account or account with root privileges has been a challenge due to organizations security policies and this had … Continue reading Containers and Developer Experience
Minikube, kubectl and local development & deployment of apps in Kubernetes
A Kubernetes cluster is a set of physical or virtual machines and other infrastructure resources that are needed to run your containerized applications.Each machine in a Kubernetes cluster is called a node and there are 2 types of node in the clusterMaster node(s): this node hosts the Kubernetes control plane and manages the worker nodes … Continue reading Minikube, kubectl and local development & deployment of apps in Kubernetes
What is Kubernetes and why do you need it ?
Containers help to package an application, it's required libraries and dependencies to run it in any environment. It simplifies the packaging and distribution of application and have become increasingly popular as organizations shift to cloud-native development and hybrid multi-cloud environments.If i have a web application which needs a java runtime, web server, database and message … Continue reading What is Kubernetes and why do you need it ?
Podman, a secure alternative for Docker.
Podman (POD MANager) is a container engine, developed by Red Hat which is designed to be a replacement for Docker. It is now the default container engine used by Red Hat Enterprise Linux (RHEL).Podman was also a lot in the news as an alternate for Docker when Docker announced change in its subscription plan. If … Continue reading Podman, a secure alternative for Docker.
Execute multi-container applications (Spring boot & PostgreSQL)
Use Case Run a dockerized spring boot application which has dependency on PostgreSQL docker containerInitialize the database with data while its getting createdMount an external volume so that the data does not get lost when container exits Solution:Step 1: Build a micro service using spring boot to be containerizedClone the following spring boot implementationhttps://github.com/rajeshsgr/order-svcThe example … Continue reading Execute multi-container applications (Spring boot & PostgreSQL)
Mount volumes to persist data in local & initialize database in Docker
When a docker container is deleted, relaunching it from the image will start a fresh new container without any of the changes made in the previously running containerThis happens because when we create a new container from an image, we add a new writable layer on top of the underlying stack of layers present in … Continue reading Mount volumes to persist data in local & initialize database in Docker
Key Docker Commands
Pull docker image from repository to local : docker pull <imageName> example docker pull busyboxRun a docker container : docker run <imageName> example docker run busyboxIf there is nothing to execute docker will exit when the process terminatesTo view all containers in local : docker ps -a To view all running containers: docker psTo stop … Continue reading Key Docker Commands
DockerFile , Docker Image, Docker Container
Dockerfile is a text file that contains the instructions needed to create a new container image. Docker engine reads the instructions from top to bottom. It contains a bunch of instructions which informs Docker HOW the Docker image should get built. It is like the script of a movie which contains details on how the … Continue reading DockerFile , Docker Image, Docker Container