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.
Перейти к файлу
Matthew Leach 5e8cf4c254 Added supportability for Traefik 2022-10-19 15:44:22 +01:00
.devcontainer upping memory requirement 2022-06-07 07:28:10 +00:00
.github Additional Firewall Sku's (#423) 2022-10-10 09:34:24 -07:00
.vscode Handle trailing clear space (#150) 2021-12-07 11:07:06 +00:00
bicep Added in supportability for network watcher and NSG flow logs (#425) 2022-10-14 12:39:03 +01:00
docs CNI improvements and UI tweaks (#413) 2022-10-07 15:36:07 +01:00
helper First push for traefik 2022-10-18 09:13:08 +00:00
postdeploy Added supportability for Traefik 2022-10-19 15:44:22 +01:00
samples Sample - ACR Publish (#379) 2022-09-12 10:17:26 +00:00
.gitignore Broken Link fix and Automated Workflow Broken Link Checker (#366) 2022-09-06 12:08:03 +01:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-06-22 04:42:32 -07:00
CONTRIBUTING.md Web app contribution guide (#296) 2022-06-07 09:20:22 +01:00
LICENSE LICENSE committed 2021-06-22 04:42:33 -07:00
README.md Adding support for ETCD encryption with KMS (#351) 2022-09-21 20:32:50 +01:00
SECURITY.md Implementing GitHub reusable workflows (#121) 2021-11-18 13:55:56 +00:00
SUPPORT.md Handle trailing clear space (#150) 2021-12-07 11:07:06 +00:00
cspell.json CNI improvements and UI tweaks (#413) 2022-10-07 15:36:07 +01:00
ps-rule.yaml CNI improvements and UI tweaks (#413) 2022-10-07 15:36:07 +01:00
referencearchs.md spelling 2022-09-02 13:24:49 +01:00

README.md

AKS Accelerator

Building a complete Kubernetes operational environment is hard work! AKS Accelerator dramatically speeds up this work by providing the templates and deployment scripts to quickly create a fully configured, Kubernetes environment, tailored to meet your operational and security needs, ready to run your workloads in production.

animated preview of AKS Construction Helper

QuickStart

  • Step 1

    Navigate to the AKS Construction helper

  • Step 2 Select your Requirements (optional)

    Select your base Operational and Security Principles using the presets that have been designed from our field experience


    Note If following Azure's Landing Zone methodology, select Enterprise Scale from the dropdown, then select your environment type

  • Step 3 Fine tune (optional)

    Use the tabs to fine tune your cluster requirements

  • Step 4 Deploy

    In the Deploy tab, choose how you will deploy your new cluster, and follow the instructions

Advanced Scenarios

The QuickStart provides a nice easy way of creating your AKS Environment, once you've done this it's likely you'll want to consume AKS Construction in a more advanced scenario.

Project components

Helper

The Helper is a website that provides a guided experience to creating your AKS environment. It dynamically generates the parameters to call the IaC, and provides deployment options using the Azure CLI, GitHub Actions or Terraform.

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 app

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 A private AKS cluster that deploys a vnet with private link services.

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.

Background

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.

This project is part of the official AKS Landing Zone Accelerator (Enterprise Scale) architectural approach. To read more about this project and how the it fits with Enterprise Scale and the AKS Secure Baseline, look here.

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, we have two contribution guides in the repo which you should read first.

Guide Description
Generic Contribution Guide Talks about the branching strategy, using CodeSpaces and general guidance
Helper Contribution Guide Talks about the structure of the app and walks through a sample change of adding a new feature to the UI and Bicep

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.

FAQ / Troubleshooting

Subscription is not registered to use namespace Microsoft.OperationsManagement

Azure Subscriptions use resource providers to be able to create Azure Services. Sometimes it can be the case that core RP's are not properly registered in your subscription. Take time to read the error message, and follow the steps to resolve. https://docs.microsoft.com/azure/azure-resource-manager/troubleshooting/error-register-resource-provider?tabs=azure-cli

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.