Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.09 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.09 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=SP_CLIENT_ID
export TF_VAR_service_principal_client_secret=SP_CLIENT_SECRET

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

ENVIRONMENT_NAME="development"
LOCATION="westeurope"

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

terraform apply -auto-approve \
  -var environment=$ENVIRONMENT_NAME \
  -var location=$LOCATION \
  -var kubernetes_version="1.13.5"