I upgraded prom/node-exporter:v0.14.0 to prom/node-exporter:v0.15.0 on my kubernetes cluster and get the following start-up error and CrashLoopBackOff:
node_exporter: error: unknown short flag '-c', try --help
My kubernetes _daemonset_ yaml definition:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: prometheus-node-exporter
labels:
name: prometheus-node-exporter
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
template:
metadata:
labels:
name: prometheus-node-exporter
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9100"
spec:
serviceAccountName: cluster-reader
hostPID: true
hostIPC: true
hostNetwork: true
containers:
- ports:
- containerPort: 9100
name: node-exporter
protocol: TCP
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
securityContext:
privileged: true
image: prom/node-exporter:v0.15.0
args:
- -collector.procfs
- /host/proc
- -collector.sysfs
- /host/sys
- -collector.filesystem.ignored-mount-points
- '"^/(sys|proc|dev|host|etc)($|/)"'
name: prometheus-node-exporter
volumeMounts:
- name: dev
mountPath: /host/dev
- name: proc
mountPath: /host/proc
- name: sys
mountPath: /host/sys
- name: rootfs
mountPath: /rootfs
volumes:
- name: proc
hostPath:
path: /proc
- name: dev
hostPath:
path: /dev
- name: sys
hostPath:
path: /sys
- name: rootfs
hostPath:
path: /
As stated in the release notes, the flags have changed. Please check node_exporter --help and adjust your Kubernetes config accordingly.
Thanks @grobie
Fixed by applying the following changes:
image: prom/node-exporter:v0.15.0
args:
- --path.procfs
- /host/proc
- --path.sysfs
- /host/sys
- --collector.filesystem.ignored-mount-points
- '"^/(sys|proc|dev|host|etc)($|/)"'
Thanks for pointing me to the release notes!
Most helpful comment
Thanks @grobie
Fixed by applying the following changes:
Thanks for pointing me to the release notes!