Collect npd log in cluster e2e test.

This commit is contained in:
Random-Liu
2017-02-22 19:04:17 -08:00
parent 2e12711160
commit afd8b70afa
2 changed files with 10 additions and 8 deletions

View File

@@ -42,10 +42,10 @@ spec:
- name: node-problem-detector
image: gcr.io/google_containers/node-problem-detector:v0.3.0-alpha.1
command:
- /node-problem-detector
- --logtostderr
- "/bin/sh"
- "-c"
# Pass both config to support both journald and syslog.
- --system-log-monitors=/config/kernel-monitor.json,/config/kernel-monitor-filelog.json
- "/node-problem-detector --logtostderr --system-log-monitors=/config/kernel-monitor.json,/config/kernel-monitor-filelog.json >>/var/log/node-problem-detector.log 2>&1"
securityContext:
privileged: true
resources:
@@ -63,7 +63,6 @@ spec:
volumeMounts:
- name: log
mountPath: /var/log
readOnly: true
- name: localtime
mountPath: /etc/localtime
readOnly: true