Azure Kubernetes Guide
This document is aimed at helping the user to deploy OpenIAM in Azure.
Set up the environment
- Authenticate into AZURE:
Sign in interactively:
az login
Or you can sign in with credentials on the command line:
az login -u <username> -p <password>
- Set the AZURE-specific variables in terraform.tfvars
Variable Name | Required | Default Value | Description |
---|---|---|---|
region | Y | The region to be deployed. For example, norwayeast. | |
replica_count | Y | The total number of nodes to be created in the kubernetes cluster. | |
resource_group_name | Y | The you resource group in AZURE. Caution, that the group must be created in advance. | |
database.root.user | Y | The root username to the database. | |
database.root.password | Y | The root password to the database. | |
database.type | Y | MariaDB, Postgres or MSSQL. | |
kubernetes.azure.machine_type | Y | Minimum is Standard_B4ms. |
Run
setup.sh
in the root of the project.Run
terraform init
.Run
terraform apply
->enter
->yes
when asked to do so.
Destroying
Due to a bug with terraform's helm provider in AZURE, destroying the objects in GKE must be performed in several automated and manual steps.
Run the destroy command:
terraform destroy# enter 'yes' when asked to do so
Finally, you will have to delete terraform's state files:
rm -rf terraform.tfstate*