Go to Services -> Managed Identities -> aciconnectorlinux-aksprod1
Azure Role Assignments
Add Role Assignment
Scope: Resource Group
Subscription: Pay-As-You-Go
Resource Group: aks-prod
Role: Contributor
Click on SAVE
Step-02-03: Delete ACI Connector Pod to recreate it¶
# List Pods
kubectl get pods -n kube-system
# Delete aci-connector-linux pod to recreate it
kubectl -n kube-system delete pod <ACI-Connector-Pod-Name>
kubectl -n kube-system delete pod $(kubectl get po -n kube-system | egrep -o 'aci-connector-linux-[A-Za-z0-9-]+')
# List Pods (ACI Connector Pod should be running)
kubectl get pods -n kube-system
# List Nodes
kubectl get nodes
# Sample Output
Kalyans-Mac-mini:~ kalyanreddy$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
aks-systempool-35488542-vmss000000 Ready agent 43m v1.17.11
virtual-node-aci-linux Ready agent 6m53s v1.14.3-vk-azure-aci-vv1.3.0
Kalyans-Mac-mini:~ kalyanreddy$
# List Node Pools
az aks nodepool list --cluster-name ${AKS_CLUSTER} --resource-group ${AKS_RESOURCE_GROUP} -o table
Note: Understand the mode System vs User
# List Nodes using Labels
kubectl get nodes -o wide -l nodepoolos=linux
kubectl get nodes -o wide -l app=java-apps
To run an AKS cluster that supports node pools for Windows Server containers, your cluster needs to use a network policy that uses Azure CNI (advanced) network plugin
Default windows Node size is Standard_D2s_v3 as on today
The following limitations apply to Windows Server node pools:
The AKS cluster can have a maximum of 10 node pools.
The AKS cluster can have a maximum of 100 nodes in each node pool.
The Windows Server node pool name has a limit of 6 characters.
# List Node Pools
az aks nodepool list --cluster-name ${AKS_CLUSTER} --resource-group ${AKS_RESOURCE_GROUP} --output table
# List Nodes using Labels
kubectl get nodes -o wide
kubectl get nodes -o wide -l nodepoolos=linux
kubectl get nodes -o wide -l nodepoolos=windows
kubectl get nodes -o wide -l environment=production
# List Node Pools
az aks nodepool list --cluster-name ${AKS_CLUSTER} --resource-group ${AKS_RESOURCE_GROUP} --output table
# Sample Output (for reference)
Name OsType KubernetesVersion VmSize Count MaxPods ProvisioningState Mode
---------- -------- ------------------- --------------- ------- --------- ------------------- ------
linux101 Linux 1.17.13 Standard_DS2_v2 1 30 Succeeded User
systempool Linux 1.17.13 Standard_DS2_v2 1 30 Succeeded System
win101 Windows 1.17.13 Standard_DS2_v2 1 30 Succeeded User