Tag archives for DevOps - Page 2
What is pod affinity in Kubernetes?
Pod affinity in Kubernetes is a concept that allows you to influence the scheduling of pods in such a way that they are placed on nodes with other pods that have a specified label or set of labels. It helps in improving the performance and efficiency of your applications by…
Top 10 DevOps Interview Questions
Top 10 DevOps Interview Questions I have listed down top 10 DevOps interview questions on few topics like, Git, Maven, Jenkins, Docker, Kubernetes, Ansible. What is the need for DevOps? What is meant by Continuous Integration? What is the difference between Continuous Delivery vs Continuous Deployment? How is devOps different…
Google Cloud I AM role best practices
Here are some best practices for using Google Cloud IAM roles: Use least privilege principle: Assign only the minimum set of permissions required to perform a task. Use roles, not individual users: Assign roles to groups of users rather than assigning permissions to individual users. This makes it easier to…
Docker Desktop Stuck at “Kubernetes is Starting”
I came across a weird issue in Docker Desktop for windows where Kubernetes was not coming up and it stuck in "Kubernetes is Starting". Please follow below steps to resolve the issue in Windows 10 machine. Quit Docket Desktop Delete the pki folder. Please find the folder in below path…
How to update autoscale configuration in Kubernetes?
What is autoscale in Kubernetes? Let's understand autoscaling with an example. If you have a web application and during specific time you got lot's of viewer and the rest of the day viewers are less. In order to serve the traffic load better you need more resources. Autoscaling providing you…
Docker Frequently Asked Questions and Answers
1) How to stop all docker containers?docker kill $(docker ps -q) 2) How to stop docker containers and remove them?docker rm $(docker ps -a -q) 3) How to remove all Docker Images?docker rmi $(docker images -q) 4) Remove all exited containersList: docker ps -a -f status=exitedRemove: docker rm $(docker ps…
denied: requested access to the resource is denied
denied: requested access to the resource is denied If you face this error while pushing image to remote docker registry then you can use below solution to fix the issue. In my case, I have created few images and I was trying to push those images in remote docker repository…
How to concatenate string variables in Bash
Here are few preferred ways to concatenate string variables in bash script Concatenate string variables in Bash the variable one after another in echo #!/bin/bash var1="Techieroop" var2="${var1} Tutorial" echo "${var2}" ##output Techieroop Tutorial 2. Use += assignment operator: #!/bin/bash var="Techieroop" var+=" Tutorial" echo "$var" ##output Techieroop Tutorial Second method can be…
Shell Script Questions and Answers
Please find below list of Shell Script Questions and Answers. Shell Script Questions and Answers 1. Given two integers, X and Y , find their sum, difference, product, and quotient. Constraints X >= -100 Y <= 100 and Y != 100 read X case ${X#} in ** | '') echo "Not an…
Jenkins Questions and Answers
Jenkins Questions and Answers Here are the list of Jenkins Questions. What is the Jenkins ? How you will use Jenkins to automate CI/CD ?How to configure your Github or Bitbucket repository to trigger the build when any changes happen in code ?Please explain all the steps to integrate SonarQube…


