Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.24 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.24 KB

Azure Kubernetes Service Module

This module is responsible for the deployment of Azure Kubernetes Service inside a given environment. The module is developed in its own repository here.

The environment-base deployment has to be run before this one.

Usage

Create a service principal for Azure Kubernetes Service, following this documentation.

Export service principal client id and client secret into Terraform environment variables:

export TF_VAR_service_principal_client_id     ="<YOUR_SP_CLIENT_ID>"
export TF_VAR_service_principal_client_secret ="<YOUR_SP_CLIENT_SECRET>"
export TF_VAR_environment                     = "development"
export TF_VAR_location                        = "francecentral"
export TF_VAR_kubernetes_version              = "1.15.5"
export TF_VAR_ssh_public_key                  = "<YOUR_SSH_PUBLIC_KEY>"

Then run the following script to deploy in the deployment environment.

ENVIRONMENT_NAME="development"

# init terraform and backend storage
./init.sh $ENVIRONMENT_NAME

terraform apply -auto-approve