47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
namespace: {{ .Release.Namespace }}
|
|
name: {{ include "haproxy-exporter.fullname" . }}
|
|
labels:
|
|
{{ include "haproxy-exporter.labels" $ | indent 4 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{ include "haproxy-exporter.labels" $ | indent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ include "haproxy-exporter.labels" $ | indent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: haproxy-exporter
|
|
image: prom/haproxy-exporter:v0.10.0
|
|
args:
|
|
- --haproxy.scrape-uri=unix:/var/run/haproxy.stat
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 180Mi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 180Mi
|
|
volumeMounts:
|
|
- name: haproxy-socket
|
|
mountPath: /var/run/haproxy.stat
|
|
ports:
|
|
- name: metrics
|
|
containerPort: 9101
|
|
{{- with $.Values.tolerations }}
|
|
tolerations:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with $.Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: haproxy-socket
|
|
hostPath:
|
|
path: /var/run/haproxy.stat |