This Terraform script creates the following:
- Azure resource group
- Azure AKS Kubernetes cluster
- Keycloack software (via Helm chart, with the values set example)
The commands are standard for Terraform:
$ terraform init
$ terraform plan
$ terraform apply
After the cluster is created and a machine is connected to it via kubectl, the following port-forwarding could be applied:
$ kubectl port-forward service/keycloak-http 8001:80
Connection of kubectl to the newly created cluster could be done via standard az cli command:
$ az aks get-credentials --resource-group kubernetes --name kubernetes
After the port-forwarding command is started, the Keycloack fresh installation (based on PostgreSQL) will be accessible by: http://localhost:8001 The very first installation requires to create an admin user via UI.