My project is for The Microsoft Azure Trial Hackathon on Dev.to
Instruction
- az login
- az account set -s "[Subscription name]"
- az group create --name rg-aks-trial --location eastasia
- az network public-ip create -g rg-aks-trial -n pip-aks-trial --dns-name aks-trial --allocation-method Static --sku Standard
- az aks create --resource-group rg-aks-trial --name aks-trial --node-count 3 --node-vm-size Standard_B2s
- az aks install-cli
- az aks get-credentials --name aks-trial -g rg-aks-trial --admin
- az aks show -g rg-aks-trial -n aks-trial --query "identity.principalId" -o tsv
- az account show --query "id" -o tsv
- az role assignment create --assignee "answer_no_8" --role "Network Contributor" --scope subscriptions/answer_no_9/resourceGroups/rg-aks-trial
- az network public-ip list -g rg-aks-trial -o tsv --query "[].ipAddress"
- kubectl config use-context aks-trial-admin
- kubectl create namespace sonarqube
- kubectl apply -f ./aks/postgres
- kubectl apply -f ./aks/sonarqube
- kubectl label namespace sonarqube cert-manager.io/disable-validation=true
- helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
- helm repo add jetstack https://charts.jetstack.io
- helm repo update
- helm install nginx-ingress ingress-nginx/ingress-nginx \ --version 4.0.13 \ --namespace sonarqube \…