Prometheus exporter for Actual Budget. actual_server itself stays in homelab-docker-compose-prod (host docker-compose), exporter only scrapes it over LAN and exposes /metrics via a ServiceMonitor. No HTTPRoute. Password and budget ID come from a hand-created Secret, not committed.
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
containers:
|
|
- name: actual-budget-exporter
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: metrics
|
|
containerPort: {{ .Values.service.port }}
|
|
env:
|
|
{{- range $k, $v := .Values.env }}
|
|
- name: {{ $k }}
|
|
value: {{ $v | quote }}
|
|
{{- end }}
|
|
- name: ACTUAL_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.secret.name }}
|
|
key: ACTUAL_PASSWORD
|
|
- name: ACTUAL_BUDGET_ID_1
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.secret.name }}
|
|
key: ACTUAL_BUDGET_ID_1
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
# No documented dedicated health endpoint; /metrics is the route
|
|
# that's always up once the exporter has started.
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /metrics
|
|
port: {{ .Values.service.port }}
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /metrics
|
|
port: {{ .Values.service.port }}
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|