🚀 𝗖𝗜𝗖𝗗 𝗣𝗶𝗽𝗲𝗹𝗶𝗻𝗲 𝗪𝗼𝗿𝗸𝗳𝗹𝗼𝘄 𝗶𝗻 𝗔𝘇𝘂𝗿𝗲 𝗗𝗲𝘃𝗢𝗽𝘀 🚀
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