Skip to content

Commit aaab740

Browse files
Merge pull request #205881 from Nickomang/aks-automated-deployments
AKS Automated Deployments
2 parents ead5cdb + be9af7b commit aaab740

18 files changed

+74
-0
lines changed

articles/aks/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@
507507
href: deployment-center-launcher.md
508508
- name: GitHub Actions for Kubernetes
509509
href: ../aks/kubernetes-action.md
510+
- name: Configure automated deployments (preview)
511+
href: automated-deployments.md
510512
- name: CI/CD with Azure Pipelines
511513
href: ../aks/devops-pipeline.md
512514
- name: Troubleshoot

articles/aks/automated-deployments.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: Automated deployments for Azure Kubernetes Service (Preview)
3+
description: Learn how to use automated deployments to simplify the process of adding GitHub Actions to your Azure Kubernetes Service (AKS) project
4+
ms.author: qpetraroia
5+
ms.topic: tutorial
6+
ms.date: 7/21/2022
7+
author: qpetraroia
8+
---
9+
10+
# Automated Deployments for Azure Kubernetes Service (Preview)
11+
12+
Automated deployments simplify the process of setting up a GitHub Action and creating an automated pipeline for your code releases to your Azure Kubernetes Service (AKS) cluster. Once connected, every new commit will kick off the pipeline, resulting in your application being updated.
13+
14+
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
15+
16+
> [!NOTE]
17+
> This feature is not yet available in all regions.
18+
19+
## Prerequisites
20+
21+
* A GitHub account.
22+
* An AKS cluster.
23+
* An Azure Container Registry (ACR)
24+
25+
## Deploy an application to your AKS cluster
26+
27+
1. In the Azure portal, navigate to the resource group containing the AKS cluster you want to deploy the application to.
28+
29+
1. Select your AKS cluster, and then select **Automated deployments (preview)** on the left blade. Select **Create an automated deployment**.
30+
31+
:::image type="content" source="media/automated-deployments/ad-homescreen.png" alt-text="The automated deployments screen in the Azure portal." lightbox="media/automated-deployments/ad-homescreen-expanded.png":::
32+
33+
1. Name your workflow and click **Authorize** to connect your Azure account with your GitHub account. After your accounts are linked, choose which repository and branch you would like to create the GitHub Action for.
34+
35+
- **GitHub**: Authorize and select the repository for your GitHub account.
36+
37+
:::image type="content" source="media/automated-deployments/ad-ghactivate-repo.png" alt-text="The authorize and repository selection screen." lightbox="media/automated-deployments/ad-ghactivate-repo-expanded.png":::
38+
39+
1. Pick your dockerfile and your ACR and image.
40+
41+
:::image type="content" source="media/automated-deployments/ad-image.png" alt-text="The image selection screen." lightbox="media/automated-deployments/ad-image-expanded.png":::
42+
43+
1. Determine whether you'll deploy with Helm or regular Kubernetes manifests. Once decided, pick the appropriate deployment files from your repository and decide which namespace you want to deploy into.
44+
45+
:::image type="content" source="media/automated-deployments/ad-deployment-details.png" alt-text="The deployment details screen." lightbox="media/automated-deployments/ad-deployment-details-expanded.png":::
46+
47+
1. Review your deployment before creating the pull request.
48+
49+
1. Click **view pull request** to see your GitHub Action.
50+
51+
:::image type="content" source="media/automated-deployments/ad-view-pr.png" alt-text="The final screen of the deployment process. The view pull request button is highlighted." lightbox="media/automated-deployments/ad-view-pr-expanded.png" :::
52+
53+
1. Merge the pull request to kick off the GitHub Action and deploy your application.
54+
55+
:::image type="content" source="media/automated-deployments/ad-accept-pr.png" alt-text="The pull request page in GitHub. The merge pull request button is highlighted." lightbox="media/automated-deployments/ad-accept-pr-expanded.png" :::
56+
57+
1. Once your application is deployed, go back to automated deployments to see your history.
58+
59+
:::image type="content" source="media/automated-deployments/ad-view-history.png" alt-text="The history screen in Azure portal, showing all the previous automated deployments." lightbox="media/automated-deployments/ad-view-history-expanded.png" :::
60+
61+
## Clean up resources
62+
63+
You can remove any related resources that you created when you don't need them anymore individually or by deleting the resource group to which they belong. To delete your automated deployment, navigate to the automated deployment dashboard and select **...**, then select **delete** and confirm your action.
64+
65+
## Next steps
66+
67+
You can modify these GitHub Actions to meet the needs of your team by opening them up in an editor like Visual Studio Code and changing them as you see fit.
68+
69+
Learn more about [GitHub Actions for Kubernetes][kubernetes-action].
70+
71+
<!-- LINKS -->
72+
[kubernetes-action]: kubernetes-action.md
108 KB
Loading
129 KB
Loading
57.1 KB
Loading
103 KB
Loading
58.7 KB
Loading
92.8 KB
Loading
79.2 KB
Loading
91.3 KB
Loading

0 commit comments

Comments
 (0)