Skip to content

Commit 7d87c16

Browse files
authored
Merge pull request #518 from Random-Liu/add-containerd-health-checker
Add containerd health checker config.
2 parents 1a7aa65 + c2ad21a commit 7d87c16

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

config/health-checker-containerd.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"plugin": "custom",
3+
"pluginConfig": {
4+
"invoke_interval": "10s",
5+
"timeout": "3m",
6+
"max_output_length": 80,
7+
"concurrency": 1
8+
},
9+
"source": "health-checker",
10+
"metricsReporting": true,
11+
"conditions": [
12+
{
13+
"type": "ContainerRuntimeUnhealthy",
14+
"reason": "ContainerRuntimeIsHealthy",
15+
"message": "Container runtime on the node is functioning properly"
16+
}
17+
],
18+
"rules": [
19+
{
20+
"type": "permanent",
21+
"condition": "ContainerRuntimeUnhealthy",
22+
"reason": "ContainerdUnhealthy",
23+
"path": "/home/kubernetes/bin/health-checker",
24+
"args": [
25+
"--component=cri",
26+
"--enable-repair=true",
27+
"--cooldown-time=2m",
28+
"--health-check-timeout=60s"
29+
],
30+
"timeout": "3m"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)