...
1package kube
2
3service: "node-exporter": {
4 metadata: annotations: "prometheus.io/scrape": "true"
5 spec: {
6 type: "ClusterIP"
7 clusterIP: "None"
8 ports: [{
9 name: "metrics"
10 }]
11 }
12}
13daemonSet: "node-exporter": spec: template: {
14 metadata: name: "node-exporter"
15 spec: {
16 hostNetwork: true
17 hostPID: true
18 containers: [{
19 image: "quay.io/prometheus/node-exporter:v0.16.0"
20 args: [
21 "--path.procfs=/host/proc",
22 "--path.sysfs=/host/sys",
23 ]
24 ports: [{
25 containerPort: 9100
26 hostPort: 9100
27 name: "scrape"
28 }]
29 resources: {
30 requests: {
31 memory: "30Mi"
32 cpu: "100m"
33 }
34 limits: {
35 memory: "50Mi"
36 cpu: "200m"
37 }
38 }
39 volumeMounts: [{
40 name: "proc"
41 readOnly: true
42 mountPath: "/host/proc"
43 }, {
44 name: "sys"
45 readOnly: true
46 mountPath: "/host/sys"
47 }]
48 }]
49 volumes: [{
50 name: "proc"
51 hostPath: path: "/proc"
52 }, {
53 name: "sys"
54 hostPath: path: "/sys"
55 }]
56 }
57}
View as plain text