-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect kubelet and container runtime frequent crashes
- Loading branch information
1 parent
967c22e
commit aa53d4c
Showing
17 changed files
with
222 additions
and
70 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
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
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
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,72 @@ | ||
{ | ||
"plugin": "custom", | ||
"pluginConfig": { | ||
"invoke_interval": "5m", | ||
"timeout": "1m", | ||
"max_output_length": 80, | ||
"concurrency": 1 | ||
}, | ||
"source": "systemd-monitor", | ||
"conditions": [ | ||
{ | ||
"type": "FrequentKubeletRestart", | ||
"reason": "NoFrequentKubeletRestart", | ||
"message": "kubelet is functioning properly" | ||
}, | ||
{ | ||
"type": "FrequentDockerRestart", | ||
"reason": "NoFrequentDockerRestart", | ||
"message": "docker is functioning properly" | ||
}, | ||
{ | ||
"type": "FrequentContainerdRestart", | ||
"reason": "NoFrequentContainerdRestart", | ||
"message": "containerd is functioning properly" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"type": "permanent", | ||
"condition": "FrequentKubeletRestart", | ||
"reason": "FrequentKubeletRestart", | ||
"path": "/home/kubernetes/bin/log-counter", | ||
"args": [ | ||
"--journald-source=systemd", | ||
"--log-path=/var/log/journal", | ||
"--lookback=20m", | ||
"--delay=5m", | ||
"--count=5", | ||
"--pattern=Started Kubernetes kubelet." | ||
], | ||
"timeout": "1m" | ||
}, | ||
{ | ||
"type": "permanent", | ||
"condition": "FrequentDockerRestart", | ||
"reason": "FrequentDockerRestart", | ||
"path": "/home/kubernetes/bin/log-counter", | ||
"args": [ | ||
"--journald-source=systemd", | ||
"--log-path=/var/log/journal", | ||
"--lookback=20m", | ||
"--count=5", | ||
"--pattern=Starting Docker Application Container Engine..." | ||
], | ||
"timeout": "1m" | ||
}, | ||
{ | ||
"type": "permanent", | ||
"condition": "FrequentContainerdRestart", | ||
"reason": "FrequentContainerdRestart", | ||
"path": "/home/kubernetes/bin/log-counter", | ||
"args": [ | ||
"--journald-source=systemd", | ||
"--log-path=/var/log/journal", | ||
"--lookback=20m", | ||
"--count=5", | ||
"--pattern=Starting containerd container runtime..." | ||
], | ||
"timeout": "1m" | ||
} | ||
] | ||
} |
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
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
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
Oops, something went wrong.