forked from kubernetes/node-problem-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the deployment file and use configmap
- Loading branch information
Showing
3 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
apiVersion: v1 | ||
data: | ||
kernel-monitor.json: | | ||
{ | ||
"plugin": "journald", | ||
"pluginConfig": { | ||
"source": "kernel" | ||
}, | ||
"logPath": "/var/log/journal", | ||
"lookback": "5m", | ||
"bufferSize": 10, | ||
"source": "kernel-monitor", | ||
"conditions": [ | ||
{ | ||
"type": "KernelDeadlock", | ||
"reason": "KernelHasNoDeadlock", | ||
"message": "kernel has no deadlock" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"type": "temporary", | ||
"reason": "OOMKilling", | ||
"pattern": "Kill process \\d+ (.+) score \\d+ or sacrifice child\\nKilled process \\d+ (.+) total-vm:\\d+kB, anon-rss:\\d+kB, file-rss:\\d+kB.*" | ||
}, | ||
{ | ||
"type": "temporary", | ||
"reason": "TaskHung", | ||
"pattern": "task \\S+:\\w+ blocked for more than \\w+ seconds\\." | ||
}, | ||
{ | ||
"type": "temporary", | ||
"reason": "UnregisterNetDevice", | ||
"pattern": "unregister_netdevice: waiting for \\w+ to become free. Usage count = \\d+" | ||
}, | ||
{ | ||
"type": "temporary", | ||
"reason": "KernelOops", | ||
"pattern": "BUG: unable to handle kernel NULL pointer dereference at .*" | ||
}, | ||
{ | ||
"type": "temporary", | ||
"reason": "KernelOops", | ||
"pattern": "divide error: 0000 \\[#\\d+\\] SMP" | ||
}, | ||
{ | ||
"type": "permanent", | ||
"condition": "KernelDeadlock", | ||
"reason": "AUFSUmountHung", | ||
"pattern": "task umount\\.aufs:\\w+ blocked for more than \\w+ seconds\\." | ||
}, | ||
{ | ||
"type": "permanent", | ||
"condition": "KernelDeadlock", | ||
"reason": "DockerHung", | ||
"pattern": "task docker:\\w+ blocked for more than \\w+ seconds\\." | ||
} | ||
] | ||
} | ||
docker-monitor.json: | | ||
{ | ||
"plugin": "journald", | ||
"pluginConfig": { | ||
"source": "docker" | ||
}, | ||
"logPath": "/var/log/journal", | ||
"lookback": "5m", | ||
"bufferSize": 10, | ||
"source": "docker-monitor", | ||
"conditions": [], | ||
"rules": [ | ||
{ | ||
"type": "temporary", | ||
"reason": "CorruptDockerImage", | ||
"pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*" | ||
} | ||
] | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
name: node-problem-detector-config | ||
namespace: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters