azure-pipeline-environment

by Codit

Helm chartv1.0.0

A Helm chart for creating required resources to use Azure Pipelines' Environment

About this chart

Azure Pipeline Environment

Azure Pipeline Environment manages all required Kubernetes resources to provision an Kubernetes environment in Azure Pipelines.

This uses the "Using existing service account" and should solely be used if the automatic provisioning flow does not work.

TL;DR

helm repo add coditeu https://coditeu.github.io/charts
helm install coditeu/azure-pipeline-environment

Introduction

Installing the Chart

To install the chart with the release name azure-pipeline-environment:

$ helm install azure-pipeline-environment coditeu/azure-pipeline-environment

Uninstalling the Chart

To uninstall the azure-pipeline-environment deployment:

helm uninstall azure-pipeline-environment

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Promitor chart and their default values.

ParameterDescriptionDefault
serviceAccount.nameName of the service account to useaz-devops
serviceAccount.annotationsAnnotations for the service accountNone
roles.cluster.nameName of the cluster role to createazure-devops-cluster-admin
roles.cluster.createIndication whether or not creation of the cluster role should be createdtrue
bindings.cluster.nameName of the cluster bindingaz-devops-admin
bindings.role.nameName of the role bindingaz-devops-admin

Deploy azure-pipeline-environment with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has azure-pipeline-environment on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartazure-pipeline-environment is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply