mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-01 09:10:22 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: node-problem-detector
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: node-problem-detector
|
|
spec:
|
|
hostNetwork: true
|
|
containers:
|
|
- name: node-problem-detector
|
|
command:
|
|
- /node-problem-detector
|
|
- --kernel-monitor=/config/kernel-monitor.json
|
|
image: gcr.io/google_containers/node-problem-detector:v0.1
|
|
imagePullPolicy: Always
|
|
env:
|
|
# Config `host` and `port` of apiserver.
|
|
- name: "KUBERNETES_SERVICE_HOST"
|
|
value: "e2e-test-lantaol-master"
|
|
- name: "KUBERNETES_SERVICE_PORT"
|
|
value: "443"
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: log
|
|
mountPath: /log
|
|
readOnly: true
|
|
- name: config
|
|
mountPath: /config
|
|
readOnly: true
|
|
volumes:
|
|
- name: log
|
|
# Config `log` to your system log directory
|
|
hostPath:
|
|
path: /var/log/
|
|
- name: config
|
|
configMap:
|
|
name: node-problem-detector-config
|