I have already tried these two features:
But hosts are still been deleted when check_mk can not reach Kubernetes API.