File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 8
8
"bufferSize" : 10 ,
9
9
"source" : " docker-monitor" ,
10
10
"metricsReporting" : true ,
11
- "conditions" : [],
11
+ "conditions" : [
12
+ {
13
+ "type" : " CorruptDockerOverlay2" ,
14
+ "reason" : " NoCorruptDockerOverlay2" ,
15
+ "message" : " docker overlay2 is functioning properly"
16
+ }
17
+ ],
12
18
"rules" : [
13
19
{
14
20
"type" : " temporary" ,
15
21
"reason" : " CorruptDockerImage" ,
16
22
"pattern" : " Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*"
23
+ },
24
+ {
25
+ "type" : " permanent" ,
26
+ "condition" : " CorruptDockerOverlay2" ,
27
+ "reason" : " CorruptDockerOverlay2" ,
28
+ "pattern" : " returned error: readlink /var/lib/docker/overlay2.*: invalid argument.*"
17
29
}
18
30
]
19
31
}
Original file line number Diff line number Diff line change @@ -101,13 +101,12 @@ function build-npd-custom-flags() {
101
101
local -r sm_config=" ${kube_home} /node-problem-detector/config/systemd-monitor.json"
102
102
103
103
local -r custom_km_config=" ${kube_home} /node-problem-detector/config/kernel-monitor-counter.json"
104
- local -r custom_dm_config=" ${kube_home} /node-problem-detector/config/docker-monitor-counter.json"
105
104
local -r custom_sm_config=" ${kube_home} /node-problem-detector/config/systemd-monitor-counter.json"
106
105
107
106
flags=" --v=2"
108
107
flags+=" --logtostderr"
109
108
flags+=" --config.system-log-monitor=${km_config} ,${dm_config} ,${sm_config} "
110
- flags+=" --config.custom-plugin-monitor=${custom_km_config} ,${custom_dm_config} , ${ custom_sm_config}"
109
+ flags+=" --config.custom-plugin-monitor=${custom_km_config} ,${custom_sm_config} "
111
110
flags+=" --port=20256"
112
111
113
112
export NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS=${flags}
You can’t perform that action at this time.
0 commit comments