diff --git a/config/health-checker-containerd.json b/config/health-checker-containerd.json new file mode 100644 index 000000000..a6fe0b95e --- /dev/null +++ b/config/health-checker-containerd.json @@ -0,0 +1,33 @@ +{ + "plugin": "custom", + "pluginConfig": { + "invoke_interval": "10s", + "timeout": "3m", + "max_output_length": 80, + "concurrency": 1 + }, + "source": "health-checker", + "metricsReporting": true, + "conditions": [ + { + "type": "ContainerRuntimeUnhealthy", + "reason": "ContainerRuntimeIsHealthy", + "message": "Container runtime on the node is functioning properly" + } + ], + "rules": [ + { + "type": "permanent", + "condition": "ContainerRuntimeUnhealthy", + "reason": "ContainerdUnhealthy", + "path": "/home/kubernetes/bin/health-checker", + "args": [ + "--component=cri", + "--enable-repair=true", + "--cooldown-time=2m", + "--health-check-timeout=60s" + ], + "timeout": "3m" + } + ] +}