Global Azure Thailand 2022
- Run line by line of setup.azcli
kubectl config use-context aks-devsecops-admin
kubectl create namespace my-sonarqube
kubectl apply -f ./aks/postgres
kubectl apply -f ./aks/sonarqube
kubectl label namespace my-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.8 ` --namespace my-sonarqube ` --set controller.replicaCount=2 ` --set controller.nodeSelector."kubernetes\.io/os"=linux ` --set defaultBackend.nodeSelector."kubernetes\.io/os"=linux ` --set controller.service.loadBalancerIP="[IP Address]" ` --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-resource-group"="rg-devsecops"
-
helm install cert-manager jetstack/cert-manager ` --namespace my-sonarqube ` --version "v1.7.2" ` --set installCRDs=true ` --set nodeSelector."kubernetes\.io/os"=linux
kubectl apply -f ./aks/cluster-issuer.yml
az network public-ip list -g rg-aks-trial -o tsv --query "[].ipAddress"
az network public-ip list -g rg-aks-trial -o tsv --query "[].dnsSettings.fqdn"
kubectl apply -f ./aks/nginx.ingress.yml