2019-08-08 22:09:53 +02:00
|
|
|
apiVersion: apps/v1
|
2018-12-12 18:18:00 +01:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
labels:
|
2020-05-26 17:59:47 +02:00
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
app.kubernetes.io/version: v0.18.1
|
2018-12-12 18:18:00 +01:00
|
|
|
name: node-exporter
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2020-05-26 17:59:47 +02:00
|
|
|
app.kubernetes.io/name: node-exporter
|
2018-12-12 18:18:00 +01:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2020-05-26 17:59:47 +02:00
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
app.kubernetes.io/version: v0.18.1
|
2018-12-12 18:18:00 +01:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- --web.listen-address=127.0.0.1:9100
|
|
|
|
- --path.procfs=/host/proc
|
|
|
|
- --path.sysfs=/host/sys
|
2019-02-01 14:52:53 +01:00
|
|
|
- --path.rootfs=/host/root
|
2020-03-18 15:13:47 +01:00
|
|
|
- --no-collector.wifi
|
|
|
|
- --no-collector.hwmon
|
2020-05-26 17:59:47 +02:00
|
|
|
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
|
2019-08-09 00:39:26 +02:00
|
|
|
image: prom/node-exporter:v0.18.1
|
2018-12-12 18:18:00 +01:00
|
|
|
name: node-exporter
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 250m
|
|
|
|
memory: 180Mi
|
|
|
|
requests:
|
|
|
|
cpu: 102m
|
|
|
|
memory: 180Mi
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /host/proc
|
|
|
|
name: proc
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /host/sys
|
|
|
|
name: sys
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /host/root
|
|
|
|
mountPropagation: HostToContainer
|
|
|
|
name: root
|
|
|
|
readOnly: true
|
|
|
|
- args:
|
2019-02-01 14:52:53 +01:00
|
|
|
- --logtostderr
|
2020-03-18 15:13:47 +01:00
|
|
|
- --secure-listen-address=[$(IP)]:9100
|
2019-02-01 14:52:53 +01:00
|
|
|
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
|
2018-12-12 18:18:00 +01:00
|
|
|
- --upstream=http://127.0.0.1:9100/
|
|
|
|
env:
|
|
|
|
- name: IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2020-03-18 20:58:42 +01:00
|
|
|
image: carlosedp/kube-rbac-proxy:v0.5.0
|
2018-12-12 18:18:00 +01:00
|
|
|
name: kube-rbac-proxy
|
|
|
|
ports:
|
|
|
|
- containerPort: 9100
|
|
|
|
hostPort: 9100
|
|
|
|
name: https
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 20m
|
2019-11-17 16:05:27 +01:00
|
|
|
memory: 40Mi
|
2018-12-12 18:18:00 +01:00
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 20Mi
|
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
nodeSelector:
|
2019-08-08 22:09:53 +02:00
|
|
|
kubernetes.io/os: linux
|
2018-12-12 18:18:00 +01:00
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
serviceAccountName: node-exporter
|
|
|
|
tolerations:
|
2019-08-08 22:09:53 +02:00
|
|
|
- operator: Exists
|
2018-12-12 18:18:00 +01:00
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
path: /proc
|
|
|
|
name: proc
|
|
|
|
- hostPath:
|
|
|
|
path: /sys
|
|
|
|
name: sys
|
|
|
|
- hostPath:
|
|
|
|
path: /
|
|
|
|
name: root
|