mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
The image location for node-problem-detector has moved under a subdirectory now. The deployment config wasn't updates, so those using the provided node-problem-detector.yaml file directly would end up with ErrImagePull errors. This updates the yaml to point to the new location and the latest release. Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
82 lines
2.1 KiB
YAML
82 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: node-problem-detector
|
|
namespace: kube-system
|
|
labels:
|
|
app: node-problem-detector
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: node-problem-detector
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: node-problem-detector
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/os
|
|
operator: In
|
|
values:
|
|
- linux
|
|
containers:
|
|
- name: node-problem-detector
|
|
command:
|
|
- /node-problem-detector
|
|
- --logtostderr
|
|
- --config.system-log-monitor=/config/kernel-monitor.json,/config/docker-monitor.json
|
|
image: k8s.gcr.io/node-problem-detector/node-problem-detector:v0.8.6
|
|
resources:
|
|
limits:
|
|
cpu: 10m
|
|
memory: 80Mi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 80Mi
|
|
imagePullPolicy: Always
|
|
securityContext:
|
|
privileged: true
|
|
env:
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
volumeMounts:
|
|
- name: log
|
|
mountPath: /var/log
|
|
readOnly: true
|
|
- name: kmsg
|
|
mountPath: /dev/kmsg
|
|
readOnly: true
|
|
# Make sure node problem detector is in the same timezone
|
|
# with the host.
|
|
- name: localtime
|
|
mountPath: /etc/localtime
|
|
readOnly: true
|
|
- name: config
|
|
mountPath: /config
|
|
readOnly: true
|
|
volumes:
|
|
- name: log
|
|
# Config `log` to your system log directory
|
|
hostPath:
|
|
path: /var/log/
|
|
- name: kmsg
|
|
hostPath:
|
|
path: /dev/kmsg
|
|
- name: localtime
|
|
hostPath:
|
|
path: /etc/localtime
|
|
- name: config
|
|
configMap:
|
|
name: node-problem-detector-config
|
|
items:
|
|
- key: kernel-monitor.json
|
|
path: kernel-monitor.json
|
|
- key: docker-monitor.json
|
|
path: docker-monitor.json
|