Hands on DevOps Coaching provided using AWS & Azure Cloud. please contact Coach AK at devops.coaching@gmail.com for more info.
Tuesday, August 6, 2024
Sunday, May 12, 2024
DevOps Interview Preparation Useful real time tips | Crack DevOps Interviews | How to clear DevOps Interviews
Are you failing in DevOps Interviews? Are you not be able to go to next round in the Interview process?
First of all you need to have clear story about following five key items:
#1. Come up with a story to talk about your back ground and over all experience
What are the Devops tools you have worked in, what cloud platform you are familiar ?
#2. Have clear idea to talk about your role in your current project
Your role instead of what whole team did
#3. Your day to day responsibilities as a DevOps engineer
How you spend your day 9-5. Starting with stand up, cicd, infra automation, collaborate with teams, meetings and documentation.
#4. Be ready to talk about the challenges, how you overcome them in your current project
What challenges you had, how did you over-come and what was the outcome?
#5. Be clear about what you know and what you don’t know.
- It is OK to say you don’t know or have not worked that specific tool when asked about it. Show some willingness to learn
- For e.g you may be good in CICD but not good in, let’s say in container orchestration tools such as Kubernetes, which is OK.
Saturday, April 20, 2024
Fix for Jenkins slowness when Running in AWS EC2 instance | Jenkins Very Slow Upon Starting EC2 Instance after Stopping
Let's say that you have configured Jenkins in AWS EC2 instance and you are using AWS free tier and you are NOT using Elastic IP, so when ever you start EC2 instance after stopping, you would have noticed Jenkins UI is taking a lot of time to come up. You try to access any page in Jenkins, it will be really slow.
What is the root cause of the issue?
Because EC2 configured in AWS free tier account would have new IP after every restart, Jenkins was trying to use old IP address when you are trying to start Jenkins. Due to this issue, Jenkins will be very slow.
Pre-requisites:
- Jenkins is setup in AWS cloud using free-tier account.
There are two ways you can fix this issue:
First option using command line
Make changes in the xml file by logging into EC2 instance through command line using Git bash or any SSH tool.
Second option us using Jenkins UI
Change public URL under Manage Jenkins->System
Change Jenkins URL to current Jenkins URL:GitHub Actions CICD Pipeline to Deploy Java WebApp into Azure App Service | Integration GitHub Actions with Azure App Service
Pre-requisites:
- Make sure Java web app is setup in GitHub
- Azure subscription to create web app
1. Login portal.azure.com
2. Click on App services
3.Click on + Add or click on Create app service

Click on Web App. Choose your Azure subscription, usually Pay as you Go or Free trial subscription
Create a new resource group or you can use existing resource group)
Operating System as Linux
Region as Central US or where ever you are based at
Enter LinuxPlan name
Choose pricing plan
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java version
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install -f MyWebApp/pom.xml
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: MyWebApp
path: '${{ github.workspace }}'
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: MyWebApp
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'spingbootwebapp'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_76B948D486E54ED7B06775D572207D40 }}
package: '*.war'
Saturday, April 6, 2024
GitHub Actions Pipeline to Create Docker Image and Push Docker Image into DockerHub | GitHub Actions Integration with DockerHub
Please find steps for integrating DockerHub with GitHub Actions:

Implementation steps:
- Create access token in DockerHub
- Add access token, docker hub user name as secrets in GitHub Actions
- Create GitHub Actions workflow yaml in your repo
- Add tasks for Maven build, docker image creation, tagging and docker push
- Run the workflow/build in GitHub hosted runner(e.g. Ubuntu)
- Verify docker image have been uploaded into DockerHub
Pre-requisites:
- DockerHub Account
- Make sure a Project is setup in GitHub with Dockerfile
- Create access token in Docker Hub for authenticating with DockerHub
Click new Repository Secret
Friday, March 22, 2024
How to Setup Self-Hosted Linux Docker Build Agent in Azure DevOps | How to configure Self-Hosted Linux Docker Agents in Azure Pipelines | Create Custom Build Agents in Azure DevOps
Let us learn how to configure a self-hosted agent using Docker in Azure DevOps pipelines.
What is an Agent?
An agent is computing infrastructure with installed agent software that runs one job at a time.To build your code or deploy your software using Azure Pipelines, you need at least one agent. As you add more code and people, you'll eventually need more.
When your pipeline runs, the system begins one or more jobs.
In Azure pipelines, there are two types of build agents:
- Microsoft-hosted agents - This is a service totally managed by Microsoft and it's cleared on every execution of the pipeline (on each pipeline execution, you have a fresh new environment).
- Self-hosted agents - This is a service that you can to set up and manage by yourself. This can be a custom virtual machine on Azure or a custom on-premise machine inside your infrastructure. In a self-hosted agent, you can install all the software you need for your builds, and this is persisted on every pipeline execution. A self-hosted agent can be on Windows, Linux, macOS, or in a Docker container.
You can set up a self-hosted agent in Azure Pipelines to run inside a Windows Server Core (for Windows hosts), or Ubuntu container (for Linux hosts) with Docker. We will learn in this article on how to host Ubuntu Docker container on Linux machines.
- Microsoft account setup
- Azure account and subscription setup
- Create a VM(Ubuntu 20.0.4) in Azure Cloud
- Create Personal Access Token in Azure DevOps
- Dockerfile created for docker build agent, please refer this repo
that's it, docker agent is successfully started.
This confirms that Build agent is successfully configured in Azure DevOps and is available to run builds.
-
Let's learn how to connect to an EC2 instance running in AWS from your local machine. Your local machine can be Windows laptop or MacBoo...
-
We get these questions a lot from the teams we are coaching at my customer's work place How to create microservices? How to break...
-
Amazon Elastic Container Registry (ECR) is a fully managed container registry service provided by Amazon Web Services (AWS). It allows user...



.png)























