This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Find common link between AKS and k8s assets data #174
Labels
question
Further information is requested
There is no azure data collector yet.
I am opening this issue as a place to put some thoughts after investigation.
When an AKS cluster is created two resource groups are created. One named by the user which holds only the kubernetes service as a resource and a second one.
The second one is called node resource group and if its name is not explicitly set by the user on cluster creation it follows a pattern like
MC_myResourceGroup_myAKSCluster_eastus.
This node resource group holds the resources needed by the cluster including the virtual machines scaling set.
Interestingly the actual virtual machines are not listed so probably they won't be collected by an asset collector.
The kubernetes node itself when running
kubectl describe node aks-agentpool-83092173-vmss000000
gives a ProviderID likeFrom the part of the aks collector we can get the
node resource group
by describing the cluster.Then we can use this noderesourcegroup to list the virtual machine scaling sets under it and get the scaling set name.
Then by listing the instances of that scaling set we can get the virtual machines (as given by ProvideId)
The text was updated successfully, but these errors were encountered: