mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
apiVersion: apps/v1beta2
|
|
kind: DaemonSet
|
|
metadata:
|
|
labels:
|
|
app: node-exporter
|
|
name: node-exporter
|
|
namespace: monitoring
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: node-exporter
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: node-exporter
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- --web.listen-address=127.0.0.1:9101
|
|
- --path.procfs=/host/proc
|
|
- --path.sysfs=/host/sys
|
|
image: quay.io/prometheus/node-exporter:v0.15.2
|
|
name: node-exporter
|
|
resources:
|
|
limits:
|
|
cpu: 102m
|
|
memory: 180Mi
|
|
requests:
|
|
cpu: 102m
|
|
memory: 180Mi
|
|
volumeMounts:
|
|
- mountPath: /host/proc
|
|
name: proc
|
|
readOnly: false
|
|
- mountPath: /host/sys
|
|
name: sys
|
|
readOnly: false
|
|
- args:
|
|
- --secure-listen-address=:9100
|
|
- --upstream=http://127.0.0.1:9101/
|
|
image: quay.io/coreos/kube-rbac-proxy:v0.3.0
|
|
name: kube-rbac-proxy
|
|
ports:
|
|
- containerPort: 9100
|
|
name: https
|
|
resources:
|
|
limits:
|
|
cpu: 20m
|
|
memory: 40Mi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65534
|
|
serviceAccountName: node-exporter
|
|
volumes:
|
|
- hostPath:
|
|
path: /proc
|
|
name: proc
|
|
- hostPath:
|
|
path: /sys
|
|
name: sys
|