Skip to content

Is there a better way than system extensions to run simple commands on boot as root? #9857

Answered by smira
asymingt asked this question in Q&A
Discussion options

You must be logged in to vote

You can use a Kubernetes DaemonSet as a way to run something on boot. Just run the command, and sleep forever in the shell script. This way on node reboot the contianer/pod will be recreated, and it will run the command once again.

Longer term, it might be nice to make it part of the nvidia extension.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@asymingt
Comment options

Answer selected by asymingt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants