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-83Lines changed: 1 addition & 83 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,89 +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
-
131
-
For Kubernetes >= 1.9 you need to add selector tag as bellow:
132
-
133
-
```yaml
134
-
apiVersion: extensions/v1beta1
135
-
kind: DaemonSet
136
-
metadata:
137
-
name: node-problem-detector
138
-
spec:
139
-
selector:
140
-
matchLabels:
141
-
name: node-problem-detector
142
-
template:
143
-
metadata:
144
-
labels:
145
-
name: node-problem-detector
146
-
template:
147
-
spec:
148
-
containers:
149
-
- name: node-problem-detector
150
-
image: k8s.gcr.io/node-problem-detector:v0.2
151
-
imagePullPolicy: Always
152
-
securityContext:
153
-
privileged: true
154
-
env:
155
-
- name: NODE_NAME
156
-
valueFrom:
157
-
fieldRef:
158
-
fieldPath: spec.nodeName
159
-
volumeMounts:
160
-
- name: log
161
-
mountPath: /log
162
-
readOnly: true
163
-
- name: localtime
164
-
mountPath: /etc/localtime
165
-
readOnly: true
166
-
volumes:
167
-
- name: log
168
-
# Config `log` to your system log directory
169
-
hostPath:
170
-
path: /var/log/
171
-
- name: localtime
172
-
hostPath:
173
-
path: /etc/localtime
174
-
```
175
-
176
-
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)
177
95
* Edit node-problem-detector.yaml to fit your environment: Set `log` volume to your system log directory. (Used by SystemLogMonitor)
178
96
* Create the DaemonSet with `kubectl create -f node-problem-detector.yaml`
179
97
* If needed, you can use [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/)
0 commit comments