Kubernetes cheat sheet part 2

This the continuation from previous post , please check if you haven’t gone through that Kubernetes cheat book part-1 List the services List Statefulset Edit running statefulset   Get the list of deployment Edit the running deployment Add a label to the node List the Persistent Volume Claim List the Persistent Volumes   Delete a pod   Create namespace Cheers!! © 2021, Techrunnr. All rights reserved.

Read More

Kubernetes cheat book part-1

As many of you working with the Kubernetes cluster for deploying your applications and other supporting components. There are a lot of commands which you need to learn or remember when you are managing the cluster. Here I’m trying to provide the list of the commands which I’m using to manage the cluster. So let’s go through that, List namespace The above command will list all the namespaces which are available in the Kubernetes cluster. List pods The above command will list all the pods in the default namespace  List…

Read More

kubernetes: Error from server: Get //IPaddress:10250/containerLogs/default/l: dial tcp 10.19.0.41:10250: getsockopt: no route to host

When you are working on Kubernetes you may have noticed this error while you are checking the logs of the pod from the Kubernetes master The command to check the pod logs, consider you have a pod that is running MySQL service. When I was trying to access the log of the pod I was received the below error, due to this I was not able to troubleshoot the issues which are there in the application.  So the first step is to fix this issue. Below are the troubleshooting steps…

Read More

WARNING server login failed: FATAL no pg_hba.conf entry for host “”, user “postgres”, database “postgres”, SSL off

I have an application that uses Postgres as the database to store application-related data. During my initial setup, I have found the above error in the application while connecting the database. From the above error, we can clearly understand that Postgres is not accepting any connection from 10.244.1.94 IP address. As you know Postgres has host-based access control which accepts the database connection from the listed host. In order to solve this error, we need to add an entry in the pg_hba.conf ( which is the host-based access control file…

Read More

Install helm in linux

Helm is the package manager for Kubernetes, where it helps you to deploy the application in your Kubernetes cluster in minutes. helm chart helps you install or upgrade the complex application in your cluster. Even you can create a helm chart for your custom application. Helm helps you deploy an application in any environment such as dev, stage, prod where you can externalize the value for each environment. Installation Binary installation choose your desired version of helm from this link, https://github.com/helm/helm/releases Ubuntu thats it, now you have completed your installation.…

Read More

how to install minikube

Hi All, today we will see how to install Minikube in Linux operating system. As the name says Minikube is the minimal setup of the Kubernetes cluster in your local machine. This makes you to develop and test the Kubernetes functionalities. This is ideally for test and learns not meant for the production setup.  For Production setup either you can go with many manager services providers such as AWS, Azure, Google, etc. or else do set up your own Kubernetes cluster in your in-house DC. System Requirements * minimum 2…

Read More

how to get the bucket cost using cost explorer

S3( simple storage Service) is object storage provided by AWS. S3 even helps to host a static website. S3 support to store any kind of data. It’s highly scalable and secure. Security depends all on how the cloud administrator has defined the Access control. If you are a continuous user who pushes your data to the s3 bucket, then you might have noticed the size of the s3 buckets also keeps increasing. So it’s always a better idea to archive the data which are not frequently used. S3 provides to…

Read More

how to get S3 buckets sizes using a cloudwatch

Get s3 buckets size and cost S3( simple storage Service) is object storage provided by AWS. S3 even helps to host a static website. S3 support to store any kind of data. It’s highly scalable and secure. Security depends all on how the cloud administrator has defined the Access control. If you are a continuous user who pushes your data to the s3 bucket, then you might have noticed the size of the s3 buckets also keeps increasing. So it’s always a better idea to archive the data which are…

Read More

docker swarm stack file Explained – Advanced Level

Docker swarm is a docker orchestration tool that comes along with docker engine when helps to manage multiple Docker containers across multiple hosts that are joined to the cluster. Docker Swarm enables high availability for docker containers by increasing the replicas for a particular service. let’s break the above docker-swarm stack file into smaller pieces In some cases, you might need to add a local DNS entry for your container when the hostname is not publically available. The above entry creates an entry in /etc/hosts file of docker container show…

Read More

docker swarm stack file Explained – Beginner Level

Docker swarm is a docker orchestration tool that comes along with docker engine when helps to manage multiple Docker containers across multiple hosts that are joined to the cluster. Docker Swarm enables high availability for docker containers by increasing the replicas for a particular service. if you don’t know what is the difference between docker-compose file vs docker stack check out this article. docker-compose and docker stack In this article, we are trying to explain about docker swarm stack file. We are splitting this article into two levels one is…

Read More