Kubernetes Components Discovery - Using Service Now Discovery
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.
Creating a Kubernetes Credentials:- We can create using Above Kubernetes Credentials option. It uses basic Authentication or Bear Token.
Create a Credential ALIAS and Connect this Credential Record created previously.
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.
Configure SERVERLESS EXECUTION PATTERN for Kubernetes Discovery.
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.
List of Kubernetes Patterns is at below URL.
https://<YourInstance>.service-now.com/nav_to.do?uri=%2Fsn_discovery_patterns_list.do
Hope This is helpful .
Regards
RP
https://www.servicenow.com/community/itom-articles/kubernetes-components-discovery-using-service-now-discovery/ta-p/2323630