Skip to content

Commit 857754c

Browse files
authored
Merge pull request #542 from mcshooter/runWithContainerD
Update windows containerd config file to run without errors
2 parents fc0edbd + 8acd791 commit 857754c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ To develop NPD on Windows you'll need to setup your Windows machine for Go devel
221221
```powershell
222222
# Run these commands in the node-problem-detector directory.
223223
224-
# Build
224+
# Build in MINGW64 Window
225225
make clean windows-binaries
226226
227-
# Test
227+
# Test in MINGW64 Window
228228
make test
229229
230-
# Run with containerd log monitoring enabled. (Assumes containerd is installed.)
230+
# Run with containerd log monitoring enabled in Command Prompt. (Assumes containerd is installed.)
231231
%CD%\bin\windows_amd64\node-problem-detector.exe --logtostderr --enable-k8s-exporter=false --config.system-log-monitor=%CD%\config\windows-containerd-monitor-filelog.json
232232
233233
# Configure NPD to run as a Windows Service

config/windows-containerd-monitor-filelog.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"plugin": "filelog",
33
"pluginConfig": {
44
"timestamp": "^time=\"(\\S*)\"",
5-
"message": "msg=\"([^\n]*)\"",
6-
"timestampFormat": "2006-01-02T15:04:05.999999999-07:00"
5+
"message": "msg=\"?([^\n]*)\"?",
6+
"timestampFormat": "2006-01-02T15:04:05.999999999Z"
77
},
8-
"logPath": "C:\\Program Files\\containerd\\containerd.log",
8+
"logPath": "C:\\etc\\kubernetes\\logs\\containerd.log",
99
"lookback": "5m",
1010
"bufferSize": 10,
1111
"source": "containerd",

0 commit comments

Comments
 (0)