Create a GitHub Workflow using Automated Deployments in the Azure Kubernetes Service (AKS) extension for Visual Studio Code

In this article, you learn how to create a GitHub Workflow using Automated Deployments in the Azure Kubernetes Service (AKS) extension for Visual Studio Code. A GitHub Workflow automates various development tasks, such as building, testing, and deploying code, ensuring consistency and efficiency across the development process. It enhances collaboration by integrating seamlessly with version control, enabling continuous integration and continuous deployment (CI/CD) pipelines, and ensuring that all changes are thoroughly vetted before being merged into the main codebase.

Prerequisites

Before you begin, make sure you have the following resources:

Create a GitHub Workflow using the Azure Kubernetes Service (AKS) extension

You can access the screen to create a GitHub Workflow using the command palette or the Kubernetes view.

  1. On your keyboard, press Ctrl+Shift+P to open the command palette.

  2. Enter the following information:

    • Workflow name: Enter a name for your GitHub Workflow.
    • GitHub repository: Select the location where want to save your Kubernetes deployment files.
    • Subscription: Select your Azure subscription.
    • Dockerfile: Select the Dockerfile that you want to build in the GitHub Action.
    • Build context: Select a build context.
    • ACR Resource Group: Select an ACR resource group.
    • Container Registry: Select a container registry.
    • Azure Container Registry image: Select or enter an Azure Container Registry image.
    • Cluster Resource Group: Select your cluster resource group.
    • Cluster: Select your AKS cluster.
    • Namespace: Select or enter a namespace in which you will deploy into.
    • Type: Select the type of deployment option.
  3. Select Create.

For more information, see AKS extension for Visual Studio Code features.

Product support and feedback

If you have a question or want to offer product feedback, please open an issue on the AKS extension GitHub repository.

Next steps

To learn more about other AKS add-ons and extensions, see Add-ons, extensions, and other integrations for AKS.