NODE_NAME="$(kubectl get node -o jsonpath="{.items[0].metadata.name}")"
kubectl node-shell $NODE_NAME
copy rebuild_kernel.sh into /opt/rebuild_kernel.sh or similar, and bash rebuild_kernel.sh
it'll reboot into the new kernel if successful.
comment out the last three lines to rebuild only without installing new kernel and rebooting.