nri
nri copied to clipboard
Add auto restart plugin when containerd restart after
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 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 ?
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.