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.
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"