Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Terraform for Azure Kubernetes Service configuration (DAaaS) (Public)

License

Notifications You must be signed in to change notification settings

StatCan/terraform-kubernetes-aks-platform-daaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51fd71b · May 14, 2020
Apr 30, 2020
May 14, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Apr 23, 2020
Apr 16, 2020
Apr 17, 2020
Mar 29, 2020
Apr 16, 2020
Apr 8, 2020
Apr 25, 2020
Apr 25, 2020
Mar 30, 2020
Apr 24, 2020
Apr 15, 2020
Apr 25, 2020
May 14, 2020
Mar 29, 2020
Apr 30, 2020
Mar 29, 2020
Apr 28, 2020
Apr 28, 2020
May 14, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 30, 2020
Apr 30, 2020
Apr 10, 2020
Mar 30, 2020
Apr 30, 2020
Mar 29, 2020
Apr 30, 2020
Mar 29, 2020
Apr 30, 2020
Mar 29, 2020
Apr 29, 2020
May 13, 2020
Apr 30, 2020
Apr 10, 2020
Apr 30, 2020
May 14, 2020
Apr 25, 2020
Apr 30, 2020
Apr 24, 2020
Apr 30, 2020
Mar 29, 2020
Mar 29, 2020
May 7, 2020
Mar 30, 2020
Apr 30, 2020
Apr 27, 2020

Repository files navigation

Terraform for Azure Kubernetes Service Platform

The overall flow for this module is pretty simple:

  • Create Azure storage account to store Terraform state
  • Create Azure AKS Platform configuration in a modular manner
  • Deploy the infrastructure incrementally using GitHub Actions

Security Controls

The following security controls can be met through configuration of this template:

  • TBD

Dependencies

Workflow

  1. Create terraform.tfvars based on example template provider.

Note: You will need to add a client secret and grant admin consent to k8s_velero_${prefix} service principal in Azure AD.

  1. Ensure you have exported the ARM_ACCESS_KEY for the Terraform backend storage account.
export ARM_ACCESS_KEY=<secret>
  1. Initialize and set the Terraform backend configuration parameters for the AzureRM provider.
terraform init\
    -backend-config="storage_account_name=terraformkubernetes" \
    -backend-config="container_name=k8s-tfstate" \
    -backend-config="key=${prefix}-aks-platform.terraform.tfstate"
  1. Create an execution plan and save the generated plan to a file.
terraform plan -out plan
  1. Apply the changes required to reach desired state.
terraform apply plan

Note: You might have to run terraform plan and apply a few times due to dependency issues.

History

Date Release Change
20190909 20190909.1 1st release