mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-19 04:06:24 +00:00
Update windows containerd config file to run without errors
This commit is contained in:
@@ -221,13 +221,13 @@ To develop NPD on Windows you'll need to setup your Windows machine for Go devel
|
||||
```powershell
|
||||
# Run these commands in the node-problem-detector directory.
|
||||
|
||||
# Build
|
||||
# Build in MINGW64 Window
|
||||
make clean windows-binaries
|
||||
|
||||
# Test
|
||||
# Test in MINGW64 Window
|
||||
make test
|
||||
|
||||
# Run with containerd log monitoring enabled. (Assumes containerd is installed.)
|
||||
# Run with containerd log monitoring enabled in Powershell/Command Prompt. (Assumes containerd is installed.)
|
||||
%CD%\bin\windows_amd64\node-problem-detector.exe --logtostderr --enable-k8s-exporter=false --config.system-log-monitor=%CD%\config\windows-containerd-monitor-filelog.json
|
||||
```
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
"plugin": "filelog",
|
||||
"pluginConfig": {
|
||||
"timestamp": "^time=\"(\\S*)\"",
|
||||
"message": "msg=\"([^\n]*)\"",
|
||||
"timestampFormat": "2006-01-02T15:04:05.999999999-07:00"
|
||||
"message": "msg=\"?([^\n]*)\"?",
|
||||
"timestampFormat": "2006-01-02T15:04:05.999999999Z"
|
||||
},
|
||||
"logPath": "C:\\Program Files\\containerd\\containerd.log",
|
||||
"logPath": "C:\\etc\\kubernetes\\logs\\containerd.log",
|
||||
"lookback": "5m",
|
||||
"bufferSize": 10,
|
||||
"source": "containerd",
|
||||
|
||||
Reference in New Issue
Block a user