Hello,
The only way I’ve found to determine whether a cluster is running on AKS or EKS is to use a classicEntitySelector like this:
fetch dt.entity.cloud_application_namespace
| filter in (id, classicEntitySelector("""type(CLOUD_APPLICATION_NAMESPACE),toRelationships.isClusterOfNamespace(type(KUBERNETES_CLUSTER),fromRelationships.isClusterOfNode(type(KUBERNETES_NODE),kubernetesProviderType("PROVIDER_TYPE_EKS")))"""))
| fieldsAdd CLOUD_PROVIDER = "AWS"
| append [
fetch dt.entity.cloud_application_namespace
| filter in (id, classicEntitySelector("""type(CLOUD_APPLICATION_NAMESPACE),toRelationships.isClusterOfNamespace(type(KUBERNETES_CLUSTER),fromRelationships.isClusterOfNode(type(KUBERNETES_NODE),kubernetesProviderType("PROVIDER_TYPE_AKS")))"""))
| fieldsAdd CLOUD_PROVIDER = "AZURE"]
It’s quite limiting, because I can only use the classicEntitySelector through a filter.
As a result, I have to repeat the command through multiple appends, and I’m unable to handle cloud providers that aren’t explicitly declared.
Do you have another idea for collecting this information?
Thanks. Aurélien.