77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
|
---
|
||
|
# Source: prometheus/templates/node-exporter/daemonset.yaml
|
||
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
labels:
|
||
|
component: "node-exporter"
|
||
|
app: prometheus
|
||
|
release: prometheus
|
||
|
chart: prometheus-15.8.5
|
||
|
heritage: Helm
|
||
|
name: prometheus-node-exporter
|
||
|
namespace: default
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
component: "node-exporter"
|
||
|
app: prometheus
|
||
|
release: prometheus
|
||
|
updateStrategy:
|
||
|
type: RollingUpdate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
component: "node-exporter"
|
||
|
app: prometheus
|
||
|
release: prometheus
|
||
|
chart: prometheus-15.8.5
|
||
|
heritage: Helm
|
||
|
spec:
|
||
|
serviceAccountName: prometheus-node-exporter
|
||
|
containers:
|
||
|
- name: prometheus-node-exporter
|
||
|
image: "quay.io/prometheus/node-exporter:v1.3.0"
|
||
|
imagePullPolicy: "IfNotPresent"
|
||
|
args:
|
||
|
- --path.procfs=/host/proc
|
||
|
- --path.sysfs=/host/sys
|
||
|
- --path.rootfs=/host/root
|
||
|
- --web.listen-address=:9100
|
||
|
ports:
|
||
|
- name: metrics
|
||
|
containerPort: 9100
|
||
|
hostPort: 9100
|
||
|
resources:
|
||
|
{}
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: false
|
||
|
volumeMounts:
|
||
|
- name: proc
|
||
|
mountPath: /host/proc
|
||
|
readOnly: true
|
||
|
- name: sys
|
||
|
mountPath: /host/sys
|
||
|
readOnly: true
|
||
|
- name: root
|
||
|
mountPath: /host/root
|
||
|
mountPropagation: HostToContainer
|
||
|
readOnly: true
|
||
|
hostNetwork: true
|
||
|
hostPID: true
|
||
|
securityContext:
|
||
|
fsGroup: 65534
|
||
|
runAsGroup: 65534
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 65534
|
||
|
volumes:
|
||
|
- name: proc
|
||
|
hostPath:
|
||
|
path: /proc
|
||
|
- name: sys
|
||
|
hostPath:
|
||
|
path: /sys
|
||
|
- name: root
|
||
|
hostPath:
|
||
|
path: /
|