Skip to content

andrepatete/infra-aks-keycloak

Repository files navigation

Cluster Deployment.

Cluster creation steps and initial settings at ./1-create_cluste_prod.sh.
Steps to create the volume to be used (Azure File share) ./2-create_azure_fileshare_volumes.sh.
Steps to deploy the application (KEycloak) via Helm ./3-deploy_application.sh.
Note: Run the commands step by step, the scripts are not yet ready to be executed at once.
These steps are only for installing the cluster.

Cluster Access.

Set environment variables.

SUBSCRIPTIONID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
RESOURCEGROUP="IDM"
ENVIRONMENT="Prod"
AKSNAME="$RESOURCEGROUP-$ENVIRONMENT"

Set Subscription.

az login
az account set --subscription $SUBSCRIPTIONID

Add Kubernetes Credentials to ~/.kube/config.

az aks get-credentials --resource-group $RESOUCEGROUPE --name $AKSNAME

Open the Browser.

az aks browse --resource-group $RESOUCEGROUPE --name $AKSNAME --subscription $SUBSCRIPTIONID

Requirement: az-cli, kubctl, Helm e jq.

To RedHat, CentOS or Fedora.

rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'
yum install azure-cli jq
az aks install-cli
wget https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz
tar -zxvf helm-v2.*.tar.gz
mv linux-amd64/helm /usr/bin/helm

Commands for switching between clusters and verifying information.

kubectl cluster-info
kubectl config current-context
kubectl config get-contexts
kubectl config use-context $AKSNAME

References:

About

Identity manager with Keycloak on Azure Kubernetes Service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages