Kubernetes discovery

Richa10
Tera Contributor

Hello,

We are planning to implement Kubernetes discovery. We have the credentials (username and password) with cluster access. 

Could you please share me the steps, how to make to Kubernetes discovery successful?

Any prerequisite for Kubernetes discovery?

How can I create and configure Kubernetes credential?

I have followed the document page - https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/service-mapping/concept/kubernetes-discovery.html

Thanks,
Richa

1 ACCEPTED SOLUTION

Hi,

Nice that was what i tough as well about the token but anyways you did it nice.


What exactly you want to see for this report?

https://docs.servicenow.com/bundle/orlando-it-operations-management/page/product/service-mapping/con...

If you see this link in which it explains the data collected for this kubernetes with relationships.

So you can create a report in cmdb_rel_ci table and then put conditions as per your need for example start from top and then go to botton.


To create a report go to report module and then click view / run. Then click on create new, select table as relationship table.


OR 

 

Other way is to use the CMDB Query functionality to give you that report.

 

Thanks,
Ashutosh

View solution in original post

12 REPLIES 12

Hi,

Nice that was what i tough as well about the token but anyways you did it nice.


What exactly you want to see for this report?

https://docs.servicenow.com/bundle/orlando-it-operations-management/page/product/service-mapping/con...

If you see this link in which it explains the data collected for this kubernetes with relationships.

So you can create a report in cmdb_rel_ci table and then put conditions as per your need for example start from top and then go to botton.


To create a report go to report module and then click view / run. Then click on create new, select table as relationship table.


OR 

 

Other way is to use the CMDB Query functionality to give you that report.

 

Thanks,
Ashutosh

Hi Ashutosh and Richa, I am trying to discover Azure Kubernetes Cluster and getting 401 error.  Could you please comment on below steps.  (I am not AKS expert.. doing first time).. 


1) My Azure Instance

find_real_file.png

 

2)kubectl cluster-info

find_real_file.png

 

3) kubectl config view (i am using bearer token so not using any of below usernames)

find_real_file.png

 

4)  kubectl describe secret

find_real_file.png

5) servicenow credentials

find_real_file.png

 

6) serverless discovery definition

find_real_file.png

7) 401 error

find_real_file.png

 

I am not sure how to perform step 3,4 of documentation.   https://docs.servicenow.com/bundle/paris-it-operations-management/page/product/service-mapping/concept/kubernetes-discovery.html

Can you please let me know how to fix.

Richa10
Tera Contributor

Thanks Ashutosh.

I am able to build report.