blob: 2c0f9a978a737edb57f99a186ca27ff069a7e1b5 [file] [log] [blame]
package kube
service "node-exporter": {
port scrape name: "metrics"
kubernetes metadata annotations "prometheus.io/scrape": "true"
kubernetes spec type: "ClusterIP"
kubernetes spec clusterIP: "None"
}
deployment "node-exporter": {
kind: "daemon"
image: "quay.io/prometheus/node-exporter:v0.16.0"
expose port scrape: 9100
args: ["--path.procfs=/host/proc", "--path.sysfs=/host/sys"]
volume proc: {
mountPath: "/host/proc"
readOnly: true
spec hostPath path: "/proc"
}
volume sys: {
mountPath: "/host/sys"
readOnly: true
spec hostPath path: "/sys"
}
kubernetes spec template spec: {
hostNetwork: true
hostPID: true
containers: [{
ports: [{hostPort: 9100}]
resources requests: {
memory: "30Mi"
cpu: "100m"
}
resources limits: {
memory: "50Mi"
cpu: "200m"
}
}]
}
}