diff --git a/20.-Azure-Devops-pipelines.md b/20.-Azure-Devops-pipelines.md index 8023739..25ea108 100644 --- a/20.-Azure-Devops-pipelines.md +++ b/20.-Azure-Devops-pipelines.md @@ -32,6 +32,24 @@ We have an Azure Devops Release pipeline per microservice. Source artifact for t All releases pipelines are very similar, as we use Helm to deploy to Kubernetes: +![Release tasks](./img/azure-devops/release-tasks.png) +We use three Azure Devops Tasks: +* A Helm task to install Helm in the build agent +* A Helm task to perform the `helm init` +* A Helm task to perform the `helm upgrade` +The helm upgrade task **uses the chart files which are produced as a build output** to install the helm chart from disk + +![Helm upgrade task](./img/azure-devops/helm-upgrade-task.png) + +Following arguments are passed to the task: + +* Namespace where to install the release +* Chart Type as "File Path" as we are using the yaml files +* Chart Path: Path with the chart files (part of build output) +* Release Name: Name of the release to upgrade +* Set Values: The values to set to the chart. We have to pass the `inf.k8s.dns`and the image name and tag +* Mark the checkboxes: Install if not present, recreate pods and Wait +* Arguments: Additional yaml files needed \ No newline at end of file diff --git a/img/azure-devops/helm-upgrade-task.png b/img/azure-devops/helm-upgrade-task.png new file mode 100644 index 0000000..87f05ea Binary files /dev/null and b/img/azure-devops/helm-upgrade-task.png differ diff --git a/img/azure-devops/release-tasks.png b/img/azure-devops/release-tasks.png new file mode 100644 index 0000000..310409d Binary files /dev/null and b/img/azure-devops/release-tasks.png differ