All Projects → Azure → Helm Vsts Agent

Azure / Helm Vsts Agent

Licence: mit
Kubernetes Helm Chart for VSTS agent pool

Projects that are alternatives of or similar to Helm Vsts Agent

Helm Doc Zh Cn
Try to translate the helm official docs to Chinese. Helm官方文档中文翻译。如果大家觉得这个项目还可以,麻烦打一下右上角的Star按钮,谢谢。此网址查看更方便,欢迎大家提bug,
Stars: ✭ 319 (+513.46%)
Mutual labels:  makefile, helm
Build Harness
🤖Collection of Makefiles to facilitate building Golang projects, Dockerfiles, Helm charts, and more
Stars: ✭ 236 (+353.85%)
Mutual labels:  makefile, helm
Helmfiles
Comprehensive Distribution of Helmfiles for Kubernetes
Stars: ✭ 205 (+294.23%)
Mutual labels:  makefile, helm
Istio Cross Namespace Canary Release Demo
Cross-namespace canary release using Kubernetes, Istio and Helm
Stars: ✭ 31 (-40.38%)
Mutual labels:  makefile, helm
Mendeley Rpm
Mendeley packaged for Fedora.
Stars: ✭ 49 (-5.77%)
Mutual labels:  makefile
Tgir
Official repository for Thank Goodness It's RabbitMQ (TGIR)!
Stars: ✭ 48 (-7.69%)
Mutual labels:  makefile
Rlp
An Example of Using Literate Programming for R Package Development
Stars: ✭ 47 (-9.62%)
Mutual labels:  makefile
Textnormalizationcoveringgrammars
Covering grammars for English and Russian text normalization
Stars: ✭ 46 (-11.54%)
Mutual labels:  makefile
So Ontologies
Collect of SO Ontologies
Stars: ✭ 51 (-1.92%)
Mutual labels:  makefile
Idris Blink
A simple Idris program to blink the LED on an Arduino
Stars: ✭ 50 (-3.85%)
Mutual labels:  makefile
Openwrt Extra
extra openwrt package feed (samba 4.12.x)
Stars: ✭ 49 (-5.77%)
Mutual labels:  makefile
Secure Boot
UEFI SecureBoot for ArchLinux
Stars: ✭ 48 (-7.69%)
Mutual labels:  makefile
Android device motorola osprey
Stars: ✭ 50 (-3.85%)
Mutual labels:  makefile
Helm Diff
A helm plugin that shows a diff explaining what a helm upgrade would change
Stars: ✭ 1,035 (+1890.38%)
Mutual labels:  helm
Chxcode
Changes the current Xcode
Stars: ✭ 51 (-1.92%)
Mutual labels:  makefile
Docker Compose Kafka
Multi-broker Kafka cluster and Zookeeper ensemble in Docker
Stars: ✭ 47 (-9.62%)
Mutual labels:  makefile
Asm Dom Boilerplate
A simple boilerplate to start using asm-dom without configuration.
Stars: ✭ 49 (-5.77%)
Mutual labels:  makefile
Stouts.grafana
Ansible role which Installs and setups Grafana metrics dashboard
Stars: ✭ 50 (-3.85%)
Mutual labels:  makefile
Largest Contentful Paint
Specification for the LargestContentfulPaint API
Stars: ✭ 49 (-5.77%)
Mutual labels:  makefile
Device xiaomi grus Twrp
TWRP device tree for Xiaomi Mi 9 SE(treble)
Stars: ✭ 49 (-5.77%)
Mutual labels:  makefile

Notice

Repository is in read-only and archive mode

Introduction

Build Status

This chart bootstraps a Visual Studio Team Services agent pool on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ or newer

Configuration

The following tables lists the configurable parameters of the vsts-agent chart and their default values.

Parameter Description Default
image.repository vsts-agent image microsoft/vsts-agent
image.tag Specify image tag latest
image.pullSecrets Specify image pull secrets nil (does not add image pull secrets to deployed pods)
image.pullPolicy Image pull policy Always
replicas Number of vsts-agent instaces started 3
resources.disk Size of the disk attached to the agent 50Gi
resources.storageclass Specify storageclass used in kubernetes default
vstsAccount VSTS account name nil (must be provided during installation)
vstsToken VSTS personal access token nil (must be provided during installation)
vstsPool VSTS agent pool name kubernetes-vsts-agents
vstsAgentName VSTS agent name $HOSTNAME
vstsWorkspace VSTS agent workspace /workspace
extraEnv Extra environment variables on the vsts-agent container nil
cleanRun Kill and restart vsts-agent container on completion of a build (completely resets the environment) false
volumes An array of custom volumes to attach to the vsts-agent pod docker-socket to mount /var/run/docker.sock (if you still need this volume when defining addition ones, please ensure you reference it again in your list)
volumeMounts volumeMounts to the vsts-agent container as referenced in volumes A read-only docker-socket to mount as /var/run/docker.sock in vsts-agent container (as in volumes please reference this again if you still need it in your custom list)
extraContainers Array of additional sidecar containers to add into the vsts-agent pod nil

Configure your VSTS instance

Before starting the chart installation, you have to configure your VSTS instance as follows:

  1. Create a personal access token with the authorized scope Agent Pools(read, manage) following these instructions. You will have to provide later the base64 encoded value of this token to the vstsToken value of the chart.

  2. Create a new queue and agent pool with the name kubernetes-vsts-agents. You can find more details here.

Installing the Chart

The chart can be installed with the following command:

export VSTS_TOKEN=$(echo -n '<VSTS TOKEN>' | base64)

helm install --namespace <NAMESPACE> --set vstsToken=${VSTS_TOKEN} --set vstsAccount=<VSTS ACCOUNT> --set vstsPool=<VSTS POOL> -f values.yaml vsts-agent .

Your deployment should look like this if everything works fine:

kubectl get pods --namespace <NAMESPACE> 
NAME           READY     STATUS    RESTARTS   AGE
vsts-agent-0   1/1       Running   0          1m
vsts-agent-1   1/1       Running   0          1m
vsts-agent-2   1/1       Running   0          1m

Upgrading a deployed Chart

A deployed chart can be upgraded as follows:

export VSTS_TOKEN=$(echo -n '<VSTS TOKEN>' | base64)

helm upgrade --timeout 900 --namespace <NAMESPACE> --set vstsToken=${VSTS_TOKEN} --set vstsAccount=<VSTS ACCOUNT> --set vstsPool=<VSTS POOL> -f values.yaml vsts-agent . --wait

This command will upgrade the exiting chart and wait until the deployment is completed.

Uninstalling the Chart

The chart can be uninstalled/deleted as follows:

helm delete --purge vsts-agent

This command removes all the Kubernetes resources associated with the chart and deletes the helm release.

Validate the Chart

You can validate the chart during development by using the helm template command.

helm template .

Scale up the number of VSTS agents

The number of VSTS agents can be easily increased to 10 by using the following command:

kubectl scale --namespace <NAMESPACE> statefulset/vsts-agent --replicas 10

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].