Skip to content

Azure AKS

Terminal window
az group create --name justapi-rg --location eastus
az aks create \
--resource-group justapi-rg \
--name justapi-cluster \
--node-count 3 \
--enable-managed-identity
Terminal window
az aks get-credentials --resource-group justapi-rg --name justapi-cluster
Terminal window
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml
Terminal window
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
Terminal window
az acr create --resource-group justapi-rg --name justapiacr --sku Basic
az acr build --registry justapiacr --image justapi-app:latest .
Terminal window
az aks update --resource-group justapi-rg --name justapi-cluster --attach-acr justapiacr
Terminal window
helm upgrade --install my-app justapi/justapi \
--set image.repository=justapiacr.azurecr.io/justapi-app \
--set image.tag=latest \
--set ingress.enabled=true \
--set ingress.host=api.example.com