Eks Cluster Discovery

Sravani36
Tera Expert

Hi @Rahul Priyadars 

The below blog was very helpful for Kubernetes discovery

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

 

Do you have any documents for EKS Cluster Discovery?

7 REPLIES 7

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Dharshan N B 

 

Sorry I didn't remember the CI class where these attributes were present but you need to debug the Kubernetes pattern or see existing discovery pattern logs to see and understand why these are not populated.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

Dharshan N B
Tera Expert

Hi @SiD2,

while debugging log we found this error for the kubernetes event pattern which in term calling kubernetes call operation
previously we added code to the kubernetes Get Call operation as per this knowledge article
Openshift Kuberenetes failing with java script Exeception - Known Error (servicenow.com)

now we are getting this error in get Namespace step

"message" : "2024-04-18 23:00:11: Exception occurred while executing operation Kubernetes Get Call. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.",

Kindly help related to this

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Dharshan N B 

 

Kubernetes Event pattern is to handle the events coming from k8s, I guess just "Kubernetes" pattern will be triggered ideally.

 

However you need to debug the pattern and see where null is coming and an operation is performed on it.

To me it seems some config problem, you can raise a case with us and someone can assist on this.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.