# Configure Command Line Credentials
az aks get-credentials --name aksdemo2 --resource-group aks-rg2
# Verify Nodes
kubectl get nodes
kubectl get nodes -o wide
# Verify aci-connector-linux
kubectl get pods -n kube-system
# Verify logs of ACI Connector Linux
kubectl logs -f $(kubectl get po -n kube-system | egrep -o 'aci-connector-linux-[A-Za-z0-9-]+') -n kube-system
- We should see virtual-node-aci-linux node also listed for kubectl get nodes output - Sample Output
Kalyans-MacBook-Pro:azure-aks-kubernetes-masterclass kdaida$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
aks-agentpool-87689508-vmss000000 Ready agent 24m v1.17.11
virtual-node-aci-linux Ready agent 21m v1.14.3-vk-azure-aci-v1.2.1.1
Kalyans-MacBook-Pro:azure-aks-kubernetes-masterclass kdaida$
Step-04: Update Deployment Manifest to Schedule Pod on Virtual Nodes¶
The below section should be added in Deployment for Azure AKS to schedule the pod on Azure Virtual Nodes
# Deploy
kubectl apply -f kube-manifests/
# Verify pods
kubectl get pods -o wide
# Get Public IP
kubectl get svc
# Access Application
http://<Public-ip-captured-from-get-service>
# List Deployments
kubectl get deploy
# Scale the Deployment to 10 Replicas
kubectl scale --replicas=10 deployment app1-nginx-deployment
# List Pods
kubectl get pods
# Delete Application
kubectl delete -f kube-manifests/
# Delete this new cluster created for Virtual Nodes (if you want to)
az aks delete --name aksdemo2 --resource-group aks-rg2