1
0
Fork 0
home-stack-kustomize/kustomize/bases/node-exporter/node-exporter-daemonset.yaml

66 lines
1.4 KiB
YAML
Raw Normal View History

2020-05-18 18:55:58 +00:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-exporter
namespace: kube-monitoring
2020-05-31 22:05:21 +00:00
labels:
2021-08-26 16:42:32 +00:00
app.kubernetes.io/name: node-exporter
2020-05-18 18:55:58 +00:00
spec:
selector:
matchLabels:
2021-08-26 16:42:32 +00:00
app.kubernetes.io/name: node-exporter
2020-05-18 18:55:58 +00:00
template:
metadata:
name: node-exporter
labels:
2021-08-26 16:42:32 +00:00
app.kubernetes.io/name: node-exporter
2020-05-18 18:55:58 +00:00
spec:
hostNetwork: true
hostPID: true
containers:
- name: node-exporter
image: prom/node-exporter:v0.18.1
args:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
ports:
- containerPort: 9100
name: http-metrics
resources:
requests:
memory: 20Mi
cpu: 100m
limits:
memory: 50Mi
cpu: 500m
volumeMounts:
- name: proc
readOnly: true
mountPath: /host/proc
- name: sys
readOnly: true
mountPath: /host/sys
tolerations:
- effect: NoSchedule
operator: Exists
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
---
apiVersion: v1
kind: Service
metadata:
name: nodes-exporter
2020-05-31 22:05:21 +00:00
labels:
2021-08-26 16:42:32 +00:00
app.kubernetes.io/name: node-exporter
2020-05-18 18:55:58 +00:00
spec:
2021-08-26 16:42:32 +00:00
selector:
app.kubernetes.io/name: node-exporter
2020-05-18 18:55:58 +00:00
ports:
- name: http-metrics
port: 9100
2021-08-26 16:42:32 +00:00
targetPort: http-metrics