nri icon indicating copy to clipboard operation
nri copied to clipboard

Add auto restart plugin when containerd restart after

Open lengrongfu opened this issue 1 year ago • 2 comments

Current containerd restart after the plugin will exit, I would like to add some code to the plugin as an example to show how to implement the auto restart plugin when containerd restart after

lengrongfu avatar Dec 26 '24 14:12 lengrongfu

@lengrongfu Do you mean that you would like to see an example plugin (maybe the sample template plugin) showing how the plugin can reconnect when the runtime is shut down and restarted ?

klihub avatar Jan 10 '25 12:01 klihub

I think https://github.com/containerd/nri/pull/173 will make this more clear; plugins will receive an error from Run() and be able to define their own logic by examining the error.

samuelkarp avatar May 23 '25 21:05 samuelkarp