Update windows containerd config file to run without errors

This commit is contained in:
michelletandya
2021-03-30 23:26:06 +00:00
parent 1e8008bded
commit 344daabaa7
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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",