Azure Devops Pipeline Agent

Azure Devops Pipeline Agent

Azure Devops Pipeline Agent

Prerequisites

  • Create one Linux vm

  • Login to Azure Devops and go to project setting

  • Select Agent pool

  • Click on add pool

  • Fill the information and click on create

  • Click on add agent

    • Now Login to Linux vm and run the below commands
     mkdir myagent && cd myagent
    
     wget https://vstsagentpackage.azureedge.net/agent/3.234.0/vsts-agent-linux-x64-3.234.0.tar.gz
    
  • Extract the zip file

 tar -xvf vsts-agent-linux-x64-3.234.0.tar.gz
  • Run config.sh
./config.sh
  • It will ask some information pls enter accordingly

  • Press Y to agree the

  • Enter Server Url

it will be the address of your organization like 
https://dev.azure.com/nks1183/devops/

  • Now generate PAT and give full permission.

    • Run the agent
    ./run.sh
    

    Now your runner should be available

    • Create SSL certificate for our application
  • Create a kubernetes Cluster

  • Create ACR

  • Create a service connection for ACR

  • Create a service connection for AKS

  • Pull and push container image

  • Create a pipeline which will craete an image and push to ACR