Azure Kubernetes Discovery

ayman_h
Kilo Sage
Kilo Sage

Hi,

Has anyone managed to discover Azure Kubernetes (AKS) clusters? If the MID Server is setup inside the cloud and has access to the AKS cluster, are we able to discover it using the documentation below? Since these are managed cluster, are we able to retrieve a kubeapi server URL by using the commands?

https://docs.servicenow.com/bundle/rome-it-operations-management/page/product/service-mapping/concept/kubernetes-discovery.html

Regards,

Ayman

7 REPLIES 7

Derek Kitzelman
ServiceNow Employee
ServiceNow Employee

Hey Ayman, I have successfully discovered AKS. You can connect to the cluster via Cloud Shell in the Azure Portal or via the Azure CLI. Once connected to the cluster, you can execute the kubectl commands. Cloud Shell on the Azure Portal provides guidance for executing commands against the cluster.

Thanks Derek, that is quite helpful! I will give this a try and let you know. Can you please confirm if you needed to do this for each Kubernetes cluster and setup admin credentials for each cluster?

 

Regards,

Ayman

Hey, is it possible to use an Azure Service Principal account to perform discovery of the AKS cluster and not have to use the individual accounts for each cluster?

 

I have tried adding the 'Azure Kubernetes Service RBAC Reader' role to the Service Principal account but get a namespace access error. Not sure if its to do with the account or the schedule configuration

Hi,

We configured the Kubernetes schedule using the instruction and use the bearer token authentication. I have feeling the URL I entered is incorrect as we get this 400 error when trying to make the first API call on the pattern to retrieve the namespaces

How to retrieve the URL of the AKS cluster?

 

Regards,

Ayman