You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-37Lines changed: 1 addition & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,43 +91,7 @@ Run `make` in the top directory. It will:
91
91
to another registry.
92
92
93
93
## Start DaemonSet
94
-
* Create a file node-problem-detector.yaml with the following yaml.
95
-
```yaml
96
-
apiVersion: extensions/v1beta1
97
-
kind: DaemonSet
98
-
metadata:
99
-
name: node-problem-detector
100
-
spec:
101
-
template:
102
-
spec:
103
-
containers:
104
-
- name: node-problem-detector
105
-
image: k8s.gcr.io/node-problem-detector:v0.2
106
-
imagePullPolicy: Always
107
-
securityContext:
108
-
privileged: true
109
-
env:
110
-
- name: NODE_NAME
111
-
valueFrom:
112
-
fieldRef:
113
-
fieldPath: spec.nodeName
114
-
volumeMounts:
115
-
- name: log
116
-
mountPath: /log
117
-
readOnly: true
118
-
- name: localtime
119
-
mountPath: /etc/localtime
120
-
readOnly: true
121
-
volumes:
122
-
- name: log
123
-
# Config `log` to your system log directory
124
-
hostPath:
125
-
path: /var/log/
126
-
- name: localtime
127
-
hostPath:
128
-
path: /etc/localtime
129
-
```
130
-
* Edit node-problem-detector.yaml to fit your environment: Set `log` volume to your system log directory. (Used by SystemLogMonitor)
94
+
* Edit [node-problem-detector.yaml](https://github.com/kubernetes/node-problem-detector/blob/master/deployment/node-problem-detector.yaml) to fit your environment: Set `log` volume to your system log directory. (Used by SystemLogMonitor). For **kubernetes <1.9** use [node-problem-detector-old.yaml](https://github.com/kubernetes/node-problem-detector/blob/master/deployment/node-problem-detector-old.yaml)
131
95
* Create the DaemonSet with `kubectl create -f node-problem-detector.yaml`
132
96
* If needed, you can use [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/)
0 commit comments