- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
2 hours ago
Guide on How to ServiceNow Kubernetes / OpenShift Discovery
Simple Steps for the Kubernetes discovery
Step 1 : On MidServer capabilities add the following capability "Kubernetes". To the one which will be used for discovery.
Step 2: Create a credentials either using username and password or only Bearer token do not use both.
Step 3 : Make sure the bearer token has below mentioned API permissions.
- Ensure that the user configured on the Kubernetes platform has GET permissions to run the following /api/v1 elements:
- https://<url>/api/v1/namespaces/
- https://<url>/api/v1/namespaces/<namespace>
- https://<url>/api/v1/namespaces/kube-system/endpoints/kube-controller-manager
- https://<url>/api/v1/services
- https://<url>/api/v1/pods
- https://<url>/api/v1/nodes
- https://<url>/api/v1/replicationcontrollers
- https://<url>/apis/networking.k8s.io/v1/ingresses
- https://<url>/apis/apps/v1/deployments
- https://<url>/apis/apps/v1/statefulsets
- https://<url>/apis/apps/v1/daemonsets
- https://<url>/apis/apps/v1/replicasets
- https://<url>/apis/batch/v1/cronjobs
- https://<url>/apis/batch/v1/jobs
2. To discover the OpenShift components of the Kubernetes deployment, ensure that the user configured on the Kubernetes platform has GET permissions to run the following /api/v1 elements:
- /apis/apps.openshift.io/v1/deploymentconfigs
- /apis/build.openshift.io/v1/buildconfigs
- /apis/route.openshift.io/v1/routes
- /apis/user.openshift.io/v1/groups
- /apis/user.openshift.io/v1/users
- /apis/project.openshift.io/v1/projects
- /apis/image.openshift.io/v1/images
- /apis/image.openshift.io/v1/imagestreams
3. To discover service mesh information:
- Deploy Istio on your K8s cluster.
- Provide the Prometheus URL.
- Configure Prometheus to scrape metrics from Istio.
Step 4 : Create credentials alias connecting to the Kubernetes credentials.
Step 5: Make Sure the MIDServer has the valid SSL certificate from the Kubernetes if its not available fetch the certificate from the Kubernetes host to the api using the below mentioned command.
openssl s_client -connect https://api.kplustest.arabbanking.local:6443 -showcerts
Step 6 : Once you receive the certificate create the certificate with.cer extension in the midserver host.
Step 7 : Once the certificate has been created in the MidServer host import the certificate using the keytool command.
Step 8 : Once the Certificate has been imported to the ca-cert path restart the midserver.
Sync the mid-server from the ServiceNow instance.
Create a discovery schedule job for serverless execution.
2. In the discovery schedule add all the parameters required along with the midserver.
3. Create a Serverless execution pattern with the details mentioned from the Kubernetes end.
Step 9 : These information will be provided by the Kubernetes team using the commands mentioned the documentation.
kubectl cluster-info
kubectl get namespaces
kube-system.
- Once these details been added into Serverless execution pattern save the discovery schedule job.
- This is give us the Kubernetes details in the discovery schedule.
If you find the article to be useful or effective for your knowledge Kindly Consider Marking the article HELPFUL and BOOKMARK if for your future use...
<<< Top Articles >>>
- ServiceNow Integration with Splunk
- LDAP Integration with ServiceNow
- ServiceNow Integration with Veeam
- Handling ServiceNow flow errors with a flow
- Show parent child incident relationships - display in field message
- ServiceNow SSO Logout Error (redirects to logout page) – Reason, Fixes and Cause.
- Multi Row Variable set ServiceNow MRVS - Creating - Scripting - Example - Limits
- ServiceNow Integration with MAC vendor - Get Mac vendor for the given MAC Address.
- How to find Log4j vulnerable severs in ServiceNow Using CMDB Query Builder (SecOps)
- How to Cancel a Long-Running Transaction ServiceNow
- Hidden Features for System Administrators
- Servicenow RPA - Understanding Attended / Unattended / Skilled Automation Bots
- Servicenow vCenter Discovery | Step by step Discovering VMware using vCenter Discovery.
- Set Discovery Schedule name to CMDB Record (via Discovery)
- Step by Step - How to discover Linux Servers in ServiceNow
- How to Generate PDF from UI action.
- Servicenow Discovery Implementaion Requirement Gathering & Pre-requisites.
- 4 Step ServiceNow Discovery for Axis IP Cameras Using SNMP
- Steps to ServiceNow Azure Cloud Discovery Configuration: From Credentials to CI Detection
MF Sohail Khilji | ServiceNow Developer / Consultant.
Connect On LinkedIn > https://www.linkedin.com/in/mf-sohail-khilji/