How to detect the reboot required in AKS nodes?

Tanul 1,281 Reputation points
2022-06-27T07:10:58.15+00:00

Team,

I cannot install Kured. Is there anyway to check if reboot is required in the nodes. I was checking through this page

https://learn.microsoft.com/en-us/azure/aks/node-access

But by any chance can we run this command with non root privileges as we just have to check the availability of /var/run/reboot-required

kubectl debug node/aks-nodepool1-12345678-vmss000000 -it --image=mcr.microsoft.com/dotnet/runtime-deps:6.0  

Don't you think its unsafe to run as root. Kindly suggest. Thank you.

Kind Regards,
Tanul

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,146 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
408 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.