logo

NJP

Kubernetes Components Discovery - Using Service Now Discovery

Import · Oct 11, 2020 · article

Just thought of putting all necessary information on Kubernetes at One place for consumption.

Kubernetes And Its Components:-Kubernetes is a cluster and container management tool. It lets you deploy containers to clusters, meaning a network of virtual machines. It works with different containers, not just Docker.

Below are the components / Resources used in in terms of K8 Deployment.

API Server, POD, Container, Service, Node , Cluster , Volume , Image , Control Plane Node , Docker , Docker Image .

I will not go into Details of all These Keywords here. Refer this URL for details-https://kubernetes.io/docs/reference/glossary/?fundamental=true

CMDB Data Model Class For Kubernetes Components:-

cmdb_ci_kubernetes_cluster

cmdb_ci_kubernetes_node

cmdb_ci_docker_image

cmdb_ci_kubernetes_service

cmdb_ci_kubernetes_pod

cmdb_ci_docker_container

cmdb_ci_kubernetes_volume

Pre- Requisite for Kubernetes Discovery -

You Must have Discovery and Service Mapping Patterns application. Once You have this then you will be able to See the Kubernetes Option In Discovery--> Credentials Application.

image

Creating a Kubernetes Credentials:- We can create using Above Kubernetes Credentials option. It uses basic Authentication or Bear Token.

image

Create a Credential ALIAS and Connect this Credential Record created previously.

image

Creating Discovery Schedule for Kubernetes:- It uses Server-less option in the discovery schedule. Configure Discovery Parameters for Kubernetes discovery into Server Less execution pattern Related List.

image

Configure SERVERLESS EXECUTION PATTERN for Kubernetes Discovery.

image

From Discovery Schedule You can Run the discovery of Kubernetes Discovery. You Can check the Discovery Logs and if all is ok the Debug Logs will look green as below. It refers to all the steps used in the K8 Patterns which is used for Kubernetes Discovery. It will create CI entries in Corresponding K8 CI tables.

image

List of Kubernetes Patterns is at below URL.

https://<YourInstance>.service-now.com/nav_to.do?uri=%2Fsn_discovery_patterns_list.do

image

Hope This is helpful .

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

Regards

RP

View original source

https://www.servicenow.com/community/itom-articles/kubernetes-components-discovery-using-service-now-discovery/ta-p/2323630