Azure Kubernetes service (aks):
offical docs

conponets in aks
- control plane – managed by aks
- worker nodes – virtual machines runing containers
- Node pool: group of worker nodes – node_type: platform
- ingress & services –> http & https routing and provide access applications
Key benfits:
- managed k8s control plane –> master maintain by azure
- Auto scalling and upgrades (vmss will supourt for worker nodes)
- Azure AD integration –> manage access using RBAC
- Integrated Monitoring with Azure
- loadbalancing and ingress suppourt
- HA and secuirty feature
- cost optimization with node pool
Prerequests:
- azure subscripition
- azure cli
- kubectl cli install
way to create aks
- portal
- cli
- terraform –> 90%
- bicep
- azure resource manager (ARM)
- powershell
Steps to create aks



choco install azure-cli -y
choco install kubernetes-cli -y
# login azure
az login --tenant 726fed04-5c24-4ce7-9f26-23aede5f917f
RESOURCE_GROUP=aks
CLUSTER_NAME=qt-aks
az aks get-credentials --resource-group aks --name qt-aks
az aks command invoke --resource-group aks --name qt-aks --command "kubectl get nodes"
deploy nexus on aks
helm repo add sonatype https://sonatype.github.io/helm3-charts/
helm repo update
helm search repo sonatype/nexus-repository-manager
kubectl create namespace nexus
# nexus-values.yaml
nexus:
resources:
requests:
cpu: 1
memory: 4Gi
limits:
cpu: 2
memory: 6Gi
persistence:
enabled: true
# storageClass: managed-csi # Azure Disk CSI (default on AKS)
storageSize: 20Gi
service:
type: LoadBalancer
helm install nexus sonatype/nexus-repository-manager \
-n nexus -f nexus-values.yaml
kubectl get pods -n nexus -w
curl -s ifconfig.me
clean up
az group list --query "[].name" -o tsv | while read -r rg; do
echo "Deleting resource group: $rg"
az group delete --name "$rg" --yes --no-wait
done