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,

What access you have to Kubernet cluster and also check username and password is correct or not.


Thanks,
Ashutosh

Hi Asutosh,

We have cluster reader access, but  team suggested to access them via OAuth. (TBH I am not sure how to access via OAuth)

when we tried login to the URL using web browser(chrome) with the given username and password, it is working well.

We are using '*' as namesapce.

Thanks,

Richa

 

Richa10
Tera Contributor

Thanks for the responses.

I am able to discover Container and its details. 

Now, how can I fetch a report which contains all these details ( container , services, pod etc)?

 

Thanks, 

Richa

Hi,

Sorry for late response. Can you tell what was the issue in first place where you got 401 error. How you fixed it so people can make use of it.

 

Next:

1) You can see relationships for that Kubernetes in relationship table.

2) You can svc_container table for container and that container should tell you respective details.


Thanks,
Ashutosh

Hi Ashutosh,

Appreciate your quick response. There was an issue with token (it was expired). With new token we were able to discover it.

Since I am new to this platform, could you please help me with detail steps on how to generate report (csv\excel)?

Thanks,

Richa