Giter Club home page Giter Club logo

azuredevops_k8s_agent's Introduction

AzureDevOps_k8s_Agent

This repository contains a small how-to on running a Azure Devops agent inside your own k8s cluster.

I assume you already have a k8s cluster up and running as well as an Agent pool inside Azure Devops.

First steps:

Check out this repository and run:
docker build inhouseharbor.foo.bar/myagentrepository/azuredevopsrunner:latest .
docker image push inhouseharbor.foo.bar/myagentrepository/azuredevopsrunner:latest

You should now have an image that's capable of running the agent. Let's go forward to the k8s part.

  • Login to one of your k8s nodes and create a k8s secret, for this how-to I'll use the Default namespace:
    kubectl create secret generic azdevops --from-literal=AZP_URL=https://dev.azure.com/MyCompany --from-literal=AZP_TOKEN=<YOUR_PAT> --from-literal=AZP_POOL=<POOL_NAME>

  • Create the ReplicationController:
    Change the image name inside the ReplicationController.yaml file and deploy the file using:
    kubectl apply -f ReplicationController.yaml

If you go to the Agents tab of your Agent pools (Project Settings - Agent pools - - Agents) you should now see your k8s agent.

azuredevops_k8s_agent's People

Watchers

Lars Biemans avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.