Deploy to AKS
Overview
The Deploy to AKS pipeline automates the deployment of a containerized application to Azure Kubernetes Service (AKS). It starts by building and pushing a Docker image to Azure Container Registry (ACR). The script then logs into Azure, configures DNS settings, and sets an A record. After logging into the AKS cluster and creating the necessary namespace, it generates a Kubernetes deployment manifest with scaling details. TLS certificates are loaded, and a Kubernetes Secret is created for secure communication. Finally, the script configures Ingress with Azure Application Gateway annotations, applying all configurations to the AKS namespace.
Input Variables
Input Variable Name | Description | Default Values | Type | Supported Values |
---|---|---|---|---|
pipeline_number_prefix | Prefix for the pipeline number. | 1.0 | string | |
gl_package_token | GitLab package token for authentication. | myGitLabToken | string | |
gl_package_username | GitLab package username for authentication. | myGitLabUser | string | |
gl_package_path | Path to the GitLab package repository. | https://gitlab.example.com/api/packages/nuget/index.json | string | |
kube_manifest_name | Name of the kubernetes manifest file. | mykubernetesmanifest | string | |
acr_repo_name | Name of the Azure Container Registry. | myacr | string | |
app_name | Name of the application. | myapplication | string |