github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/manual/services/mon/nodeexporter/kube.cue (about) 1 package kube 2 3 service: "node-exporter": { 4 port: scrape: name: "metrics" 5 6 kubernetes: metadata: annotations: "prometheus.io/scrape": "true" 7 kubernetes: spec: type: "ClusterIP" 8 kubernetes: spec: clusterIP: "None" 9 } 10 11 deployment: "node-exporter": { 12 kind: "daemon" 13 14 image: "quay.io/prometheus/node-exporter:v0.16.0" 15 16 expose: port: scrape: 9100 17 args: ["--path.procfs=/host/proc", "--path.sysfs=/host/sys"] 18 19 volume: proc: { 20 mountPath: "/host/proc" 21 readOnly: true 22 spec: hostPath: path: "/proc" 23 } 24 volume: sys: { 25 mountPath: "/host/sys" 26 readOnly: true 27 spec: hostPath: path: "/sys" 28 } 29 30 kubernetes: spec: template: spec: { 31 hostNetwork: true 32 hostPID: true 33 34 containers: [{ 35 ports: [{hostPort: 9100}] 36 resources: requests: { 37 memory: "30Mi" 38 cpu: "100m" 39 } 40 resources: limits: { 41 memory: "50Mi" 42 cpu: "200m" 43 } 44 }] 45 } 46 }