- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 10:23 PM
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
Solved! Go to Solution.
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 04:46 AM
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?
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:20 AM
HI,
What access you have to Kubernet cluster and also check username and password is correct or not.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 03:56 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 04:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 04:22 AM
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