Kubernetes based pool provider implementation for Azure DevOps pipelines
Перейти к файлу
Divyansh Manchanda 1a9f9f97d4 [v2.29] try the other token 2019-09-18 17:55:23 +05:30
.vscode local deploy uses kubeconfig.fixed agentId labels in create and delete 2019-09-04 14:40:14 +05:30
agentpods [v2.27] use creds from call to provision agent 2019-09-18 16:44:17 +05:30
helm [v2.29] try the other token 2019-09-18 17:55:23 +05:30
manifests [v2.29] try the other token 2019-09-18 17:55:23 +05:30
.gitignore moved k8s related code to its own package 2019-09-05 12:14:48 +05:30
Dockerfile Fixing dockerfile 2019-09-05 15:26:15 +05:30
README.md Instructions for local testing 2019-09-06 11:19:35 +05:30
Security.md added security file back 2019-09-06 11:10:35 +05:30
contracts.go [v2.29] try the other token 2019-09-18 17:55:23 +05:30
go.mod go dep 2019-09-05 15:21:11 +05:30
go.sum go dep 2019-09-05 15:21:11 +05:30
hmac.go added support for HMAC encryption 2019-08-19 11:58:30 +05:30
kubernetes-auth.go fixing docker file 2019-09-05 14:42:33 +05:30
kubernetes.go [v2.28] fix secret name 2019-09-18 17:17:52 +05:30
main.go [v2.29] try the other token 2019-09-18 17:55:23 +05:30
redis.go [v2.16] redis cleanup and helm chart update 2019-08-05 14:26:47 +05:30

README.md

k8s-poolprovider

helm install k8s-poolprovider --name=myhelmchart --set "vsts.VSTS_ACCOUNT=accountname" --set "vsts.VSTS_POOL=poolname" --set "vsts.VSTS_TOKEN=pat token" --set "vsts.VSTS_SECRET=shared secret"

For local testing

Use the kubernetes.yaml and buildkit.yaml under Manifests folder to set up the application on your cluster. This works if you want to test the containerised application on a kubernetes cluster.

When using VS Code, the launch.json has been appropriately modified for local debugging. If debugging locally,

  1. Make sure you can run kubectl commands from your machine, and a kubeconfig file is present on your machine.
  2. Create a new namespace 'azuredevops' on your cluster.
  3. Create an opaque secret in the azuredevops namespace with the required secrets set. kubectl create secret generic vsts --from-literal=VSTS_TOKEN=<token> --from-literal=VSTS_ACCOUNT=<account> --from-literal=VSTS_POOL=<poolname> -n azuredevops
  4. Voila! You can start debugging directly from VS code. When the deployment happens, hit localhost:8082 with the correct APIs and see the app in action.