@Shashwat Tripathi Are you asking about upgrading the kernel for nodes of a cluster that has already been deployed? Cloudbreak recipes are run during cluster deployment; they don't come into play after the cluster has been deployed.
If you are asking about doing a kernel during cluster deployment with a recipe, I believe it is technically possible. You probably want to do that as a post installation recipe. However, I advise caution in doing something like this. You might be better served using something like Ansible to manage patch deployment outside of Cloudbreak. Just my two cents.