Accelerate your onboarding to AKS with; Helper Web App, bicep templating and CI/CD samples. Flexible & secure AKS baseline implementations in a Microsoft + community maintained reference implementation.
Перейти к файлу
Gordon Byers 9d9bb41134
Implementing GitHub reusable workflows (#121)
Refactored the Java app smoke tests to reusable workflows
Conditionally applying Azure Key Vault Access Policies regression
Targeting JavaAppV3 Chart in minihelm
Optionally uninstalls the java app before attempting install. (Good for when AGIC knots up)
Using loops with short sleeps to wait for DNS/Certificate issue/App ready, rather than random length sleeps

Changed Network Plugin preset to Azure from Calico (and added a Playwright test to cover 😎 )
A few spelling mistakes
GitHub pages publish helper workflow
Added spell checker to stop typo's slipping through
Move release tag to env variable since it was used in 2 places and caused a problem with the v3.0.0-preview release


Added doc for the regression workflow to the contribution guide
Quite a few spelling mistakes, throughout various files
A few stray markdown whitespace warnings taken care of that the VSCode docs plugin cared about
2021-11-18 13:55:56 +00:00
.devcontainer Setting length limit on the cluster name in Web App (#104) 2021-11-04 10:43:39 +00:00
.github Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
.vscode Dev container and typos - cherry picked from gb-typos branch 2021-10-14 10:50:28 +01:00
bicep remove main.json 2021-11-12 12:27:42 +00:00
docassets Readme enhancements (#90) 2021-10-19 17:13:19 +01:00
helper Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
samples using run command for private cluster 2021-11-05 09:43:38 +00:00
.gitignore Setting length limit on the cluster name in Web App (#104) 2021-11-04 10:43:39 +00:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-06-22 04:42:32 -07:00
CONTRIBUTING.md Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
GhActions.md Simplifying the Standard CI Pipeline (#101) 2021-11-01 20:10:37 +00:00
LICENSE LICENSE committed 2021-06-22 04:42:33 -07:00
README.md Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
SECURITY.md Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
SUPPORT.md Updated support page 2021-06-22 12:45:30 +01:00
cspell.json Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
helper_preview.png reducing image size 2021-06-29 08:09:35 +01:00
helper_preview_es.png Adding Infrastructure as Code documentation (#83) 2021-10-14 14:38:52 +01:00
ps-rule.yaml Key Vault related features (#84) 2021-10-20 09:56:57 +01:00
referencearchs.md Dev container and typos - cherry picked from gb-typos branch 2021-10-14 10:50:28 +01:00

README.md

AKS Bicep Accelerator

Building Kubernetes clusters can be hard work! The AKS Bicep Accelerator focuses on expediting customers onboarding of Azure Kubernetes Service workloads using best practices and a flexible templating approach to suit differing requirements.

This project unifies guidance provided by the AKS Secure Baseline, Well Architected Framework, Cloud Adoption Framework and Enterprise-Scale by providing tangible artifacts to deploy Azure resources from CLI or CI/CD systems.

The AKS Bicep Accelerator is part of the official Enterprise Scale for AKS architectural approach. To read more about this project and how the AKS Bicep Accelerator fits with Enterprise Scale and the AKS Secure Baseline, look here.

The 3 Components

This projects focus is split equally over 3 areas, configuration, modular templating and CI implementation.

project component areas

Wizard experience

To help guide your AKS configuration, use the Deployment Helper, which will provide a set of parameters and scripts to make deployment simple. It uses several preset configurations to guide configuration decisions. The deployment helper provides links to the official Microsoft documentation to help provide additional context for each feature.

preview screenshot of the helper wizard

IaC - Bicep code files

IaC (Infrastructure as Code) code files have been modularised into their component areas. Main.bicep references them and they are expected to be present in the same directory. The Deployment Helper leverages an Arm json compiled version of all the bicep files.

Releases are used to version the bicep code files, they can be leveraged directly for use in your project or you can opt to Fork the repo if you prefer.

DevOps - GitHub Actions

A number of GitHub actions are used in the repo that run on push/pr/schedules. These can be copied into your own repo and customised for your CI/CD pipeline. A robust deployment pipeline is essential when coordinating the deployment of multiple Azure services that work together, additionally there is configuration that cannot be set in the template and that needs to be automated (and tested) consistently. preview screenshot of the helper wizard

CI Name Actions Workflow Parameter file CI Status Notes
Starter cluster StandardCI.yml ESLZ Sandbox AksStandardCI A simple deployment example, good for first time users of this project to start with
BYO Vnet ByoVnetCI.yml ESLZ Byo peered vnet ByoVnetCI Comprehensive IaC flow deploying multiple smoke-test apps
Private cluster ByoVnetPrivateCI.yml ESLZ Byo private vnet ByoVNetPrivateCI As above, but with a focus on private networking

For a more in depth look at the GitHub Actions used in this project, which steps are performed and the different CI practices they demonstrate, please refer to this page.

Getting Started

Basic

If this is the first time you're using the project, follow these steps.

  1. Use the Deployment Helper to guide your AKS configuration.
  2. Run the commands in the Provision Environment tab to create your AKS Environment in your Azure subscription
  3. Run the commands in the Post Configuration tab to complete your implementation
  4. Connect to your AKS Cluster, and deploy your applications as you see fit.

Mature

If you're looking to use this project as part of your deployments, follow these steps.

  1. Use the Deployment Helper to guide your AKS configuration.
  2. Capture the parameters on the Template Parameters File tab to a file - this is your configuration
  3. Check the Post Configuration tab for any commands and save them to a file
  4. Grab the latest release of the bicep code
  5. (optionally) Author an Application Main bicep to represent your application (see here for an example)
  6. In your CI/CD system, either using one of the GitHub Action Workflow files as a base, or by coding it yourself - initiate a deployment of the bicep code, using your parameter file
  7. In your CI/CD system, deploy your application(s) to the AKS cluster

Project Principals

The guiding principal we have with this project is to focus on the the downstream use of the project (see releases). As such, these are our specific practices.

  1. Deploy all components through a single, modular, idempotent bicep template Converge on a single bicep template, which can easily be consumed as a module
  2. Provide best-practice defaults, then use parameters for different environment deployments
  3. Minimise "manual" steps for ease of automation
  4. Maintain quality through validation & CI/CD pipelines that also serve as working samples/docs
  5. Focus on AKS and supporting services, linking to other repos to solve; Demo apps / Developer workstations / Jumpboxes / CI Build Agents / Certificate Authorities

Contributing

If you're interested in contributing, please refer to the contribution guide

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.