netflux-kubernetes/deploy/base/inflated/prometheus/charts/prometheus-node-exporter/templates/daemonset.yaml

115 lines
3.4 KiB
YAML
Raw Normal View History

2022-12-20 08:02:41 +00:00
---
# Source: prometheus/charts/prometheus-node-exporter/templates/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: prometheus-prometheus-node-exporter
namespace: default
labels:
2023-07-16 06:22:33 +00:00
helm.sh/chart: prometheus-node-exporter-4.18.1
2022-12-20 08:02:41 +00:00
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
2023-07-16 06:22:33 +00:00
app.kubernetes.io/version: "1.6.0"
2022-12-20 08:02:41 +00:00
spec:
selector:
matchLabels:
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels:
2023-07-16 06:22:33 +00:00
helm.sh/chart: prometheus-node-exporter-4.18.1
2022-12-20 08:02:41 +00:00
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
2023-07-16 06:22:33 +00:00
app.kubernetes.io/version: "1.6.0"
2022-12-20 08:02:41 +00:00
spec:
automountServiceAccountToken: false
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: prometheus-prometheus-node-exporter
containers:
- name: node-exporter
2023-07-16 06:22:33 +00:00
image: quay.io/prometheus/node-exporter:v1.6.0
2022-12-20 08:02:41 +00:00
imagePullPolicy: IfNotPresent
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
2023-07-16 06:22:33 +00:00
- --path.udev.data=/host/root/run/udev/data
2022-12-20 08:02:41 +00:00
- --web.listen-address=[$(HOST_IP)]:9100
securityContext:
allowPrivilegeEscalation: false
2023-07-16 06:22:33 +00:00
readOnlyRootFilesystem: true
2022-12-20 08:02:41 +00:00
env:
- name: HOST_IP
value: 0.0.0.0
ports:
- name: metrics
containerPort: 9100
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /
port: 9100
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /
port: 9100
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
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
2023-07-16 06:22:33 +00:00
nodeSelector:
kubernetes.io/os: linux
2022-12-20 08:02:41 +00:00
tolerations:
- effect: NoSchedule
operator: Exists
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
- name: root
hostPath:
path: /