EKS cluster deletion

FS1
Tera Contributor

Hi All,

 

I have a query on EKS cluster discovery. Once a cluster is deleted, the respective cluster discovery schedule is set to inactive however I see the cluster CI is getting deleted and the deleted record is not showing up even in audit table.

 

Can anyone help? I dont want the CI to be deleted from cmdb_ci_kubernetes_cluster table.

 

@SiD2 , I see your replies on most of the Kubernetes discovery queries, could you please help?

5 REPLIES 5

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @FS1 

 

I hope you must be using the auto k8s schedule feature where during cloud discovery it does create the schedules for each k8s cluster.

If yes, OOB behavior should be marked as Absent only but not Delete the CI. Btw the deleted records will be available under the menu "Deleted Records" itself.

 

Are you sure if there were no customizations at your end?

 

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

FS1
Tera Contributor

Hi @SiD2,

 

Yes, I'm using the auto k8s schedule feature. Initially the kubernetes cluster was set to absent however later after few hours the record was not there. Also, I checked the deleted records table, but I don't see this particular CI.

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @FS1 

 

That's strange!

Either record should be present or at least recorded in that table, not sure what's wrong.

 

When you say that it's marked as Absent it means OOB it's working but later due to some customization it might have been deleted. I suggest checking with your any internal discovery team to find any such flow.

 

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

FS1
Tera Contributor

Hi @SiD2 ,

 

I found a snow documentation where they mentioned when the deletion strategy for CI type ' cmdb_ci_network_adapter', & 'cmdb_ci_ip_address' is 'Mark as absent' their CI's gets deleted.

 

Could you please check if there could be a chance where records get deleted for 'cmdb_ci_kubernetes_cluster' CI type also?

 

Reference link - Set a deletion strategy (servicenow.com)