๐ ๐๐๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ ๐ช๐ผ๐ฟ๐ธ๐ณ๐น๐ผ๐ ๐ถ๐ป ๐๐๐๐ฟ๐ฒ ๐๐ฒ๐๐ข๐ฝ๐ ๐
Here we understand the flow of Azure DevOps CI/CD for deploying to Azure Kubernetes Service.
๐ญ. ๐ฃ๐ฅ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ (๐ฃ๐๐น๐น ๐ฅ๐ฒ๐พ๐๐ฒ๐๐)
๐ ๏ธ Fast quality checks: linting, building, and unit testing the code.
๐ Failed checks prevent PR merge.
โ Successful run results in PR merge.
๐ฎ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ (๐๐ผ๐ป๐๐ถ๐ป๐๐ผ๐๐ ๐๐ป๐๐ฒ๐ด๐ฟ๐ฎ๐๐ถ๐ผ๐ป)
๐ Runs tasks from PR pipeline + integration tests.
๐ Accesses secrets from Azure Key Vault.
๐ฆ Creates & publishes container image in non-production Azure Container Repository.
๐ฏ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ ๐ง๐ฟ๐ถ๐ด๐ด๐ฒ๐ฟ๐ฒ๐ฑ
๐ Completion of CI pipeline triggers CD pipeline.
๐ฐ. ๐ฆ๐๐ฎ๐ด๐ถ๐ป๐ด ๐๐ป๐๐ถ๐ฟ๐ผ๐ป๐บ๐ฒ๐ป๐ ๐๐ฒ๐ฝ๐น๐ผ๐๐บ๐ฒ๐ป๐
๐ Deploys YAML template to staging AKS environment.
โ Performs acceptance tests on the staging environment.
โ๏ธ Manual validation task (optional).
๐ฑ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ - ๐ ๐ฎ๐ป๐๐ฎ๐น ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ถ๐ผ๐ป
๐ค Manual validation step to validate deployment.
๐ Manual intervention resumes the pipeline.
๐ฒ. ๐ฃ๐ฟ๐ผ๐ฑ๐๐ฐ๐๐ถ๐ผ๐ป ๐๐ฒ๐ฝ๐น๐ผ๐๐บ๐ฒ๐ป๐
๐ Promotes image to production Azure Container Registry.
๐ข Deploys YAML template to production AKS environment.
๐ณ. ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ ๐๐ป๐๐ถ๐ด๐ต๐๐ & ๐๐๐๐ฟ๐ฒ ๐ ๐ผ๐ป๐ถ๐๐ผ๐ฟ
๐ Container Insights forwards performance metrics to Azure Monitor.
๐ Azure Monitor collects observability data - logs, metrics, health, and performance.
๐ด. ๐๐ฒ๐ ๐๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐
๐ฆ Container Registry: Stores private container images.
๐ ๏ธ AKS: Managed Kubernetes service by Azure.
๐ Azure Key Vault: Manages secrets for pipelines.
๐ Defender for DevOps: Performs static analysis, enhances security visibility across AKS pipelines.
The workflow integrates various stages ensuring code quality, testing, and secure deployments across non-production and production environments in Azure DevOps. Container Insights, Azure Monitor, and Defender for DevOps enhance monitoring, observability, and security within the CI/CD pipeline.
โค๏ธ ๐ ๐จ๐ฅ๐ฅ๐จ๐ฐ @prodevopsguy ๐๐จ๐ซ ๐ฆ๐จ๐ซ๐ ๐ฌ๐ฎ๐๐ก ๐๐จ๐ง๐ญ๐๐ง๐ญ ๐๐ซ๐จ๐ฎ๐ง๐ ๐๐ฅ๐จ๐ฎ๐ & ๐๐๐ฏ๐๐ฉ๐ฌ!!! // ๐๐จ๐ข๐ง ๐๐จ๐ซ ๐๐๐ฏ๐๐ฉ๐ฌ ๐๐๐๐ฌ: @devopsdocs
Here we understand the flow of Azure DevOps CI/CD for deploying to Azure Kubernetes Service.
๐ญ. ๐ฃ๐ฅ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ (๐ฃ๐๐น๐น ๐ฅ๐ฒ๐พ๐๐ฒ๐๐)
๐ ๏ธ Fast quality checks: linting, building, and unit testing the code.
๐ Failed checks prevent PR merge.
โ Successful run results in PR merge.
๐ฎ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ (๐๐ผ๐ป๐๐ถ๐ป๐๐ผ๐๐ ๐๐ป๐๐ฒ๐ด๐ฟ๐ฎ๐๐ถ๐ผ๐ป)
๐ Runs tasks from PR pipeline + integration tests.
๐ Accesses secrets from Azure Key Vault.
๐ฆ Creates & publishes container image in non-production Azure Container Repository.
๐ฏ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ ๐ง๐ฟ๐ถ๐ด๐ด๐ฒ๐ฟ๐ฒ๐ฑ
๐ Completion of CI pipeline triggers CD pipeline.
๐ฐ. ๐ฆ๐๐ฎ๐ด๐ถ๐ป๐ด ๐๐ป๐๐ถ๐ฟ๐ผ๐ป๐บ๐ฒ๐ป๐ ๐๐ฒ๐ฝ๐น๐ผ๐๐บ๐ฒ๐ป๐
๐ Deploys YAML template to staging AKS environment.
โ Performs acceptance tests on the staging environment.
โ๏ธ Manual validation task (optional).
๐ฑ. ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ - ๐ ๐ฎ๐ป๐๐ฎ๐น ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ถ๐ผ๐ป
๐ค Manual validation step to validate deployment.
๐ Manual intervention resumes the pipeline.
๐ฒ. ๐ฃ๐ฟ๐ผ๐ฑ๐๐ฐ๐๐ถ๐ผ๐ป ๐๐ฒ๐ฝ๐น๐ผ๐๐บ๐ฒ๐ป๐
๐ Promotes image to production Azure Container Registry.
๐ข Deploys YAML template to production AKS environment.
๐ณ. ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ ๐๐ป๐๐ถ๐ด๐ต๐๐ & ๐๐๐๐ฟ๐ฒ ๐ ๐ผ๐ป๐ถ๐๐ผ๐ฟ
๐ Container Insights forwards performance metrics to Azure Monitor.
๐ Azure Monitor collects observability data - logs, metrics, health, and performance.
๐ด. ๐๐ฒ๐ ๐๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐
๐ฆ Container Registry: Stores private container images.
๐ ๏ธ AKS: Managed Kubernetes service by Azure.
๐ Azure Key Vault: Manages secrets for pipelines.
๐ Defender for DevOps: Performs static analysis, enhances security visibility across AKS pipelines.
The workflow integrates various stages ensuring code quality, testing, and secure deployments across non-production and production environments in Azure DevOps. Container Insights, Azure Monitor, and Defender for DevOps enhance monitoring, observability, and security within the CI/CD pipeline.
โค๏ธ ๐ ๐จ๐ฅ๐ฅ๐จ๐ฐ @prodevopsguy ๐๐จ๐ซ ๐ฆ๐จ๐ซ๐ ๐ฌ๐ฎ๐๐ก ๐๐จ๐ง๐ญ๐๐ง๐ญ ๐๐ซ๐จ๐ฎ๐ง๐ ๐๐ฅ๐จ๐ฎ๐ & ๐๐๐ฏ๐๐ฉ๐ฌ!!! // ๐๐จ๐ข๐ง ๐๐จ๐ซ ๐๐๐ฏ๐๐ฉ๐ฌ ๐๐๐๐ฌ: @devopsdocs