Skip to content

Commit

Permalink
Merge pull request #518 from Random-Liu/add-containerd-health-checker
Browse files Browse the repository at this point in the history
Add containerd health checker config.
  • Loading branch information
k8s-ci-robot authored Jan 29, 2021
2 parents 1a7aa65 + c2ad21a commit 7d87c16
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions config/health-checker-containerd.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 7d87c16

Please sign in to comment.