Add TeslaMate deployment for Tesla Model Y data logging #47

Merged
eblume merged 8 commits from feature/teslamate into main 2026-01-22 21:25:45 -08:00
2 changed files with 10 additions and 4 deletions
Showing only changes of commit b26f89bfce - Show all commits

Use separate DB env vars instead of DATABASE_URL

The password contains @ characters which break URL parsing.
TeslaMate supports separate DATABASE_USER/PASS/NAME/HOST variables.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Erich Blume 2026-01-22 19:45:19 -08:00

View file

@ -19,11 +19,17 @@ spec:
ports:
- containerPort: 4000
env:
- name: DATABASE_URL
- name: DATABASE_USER
value: "teslamate"
- name: DATABASE_PASS
valueFrom:
secretKeyRef:
name: teslamate-db
key: url
key: password
- name: DATABASE_NAME
value: "teslamate"
- name: DATABASE_HOST
value: "blumeops-pg-rw.databases.svc.cluster.local"
- name: ENCRYPTION_KEY
valueFrom:
secretKeyRef:

View file

@ -1,4 +1,4 @@
# TeslaMate database connection secret
# TeslaMate database password secret
#
# Apply with: op inject -i argocd/manifests/teslamate/secret-db.yaml.tpl | kubectl apply -f -
apiVersion: v1
@ -8,4 +8,4 @@ metadata:
namespace: teslamate
type: Opaque
stringData:
url: "ecto://teslamate:{{ op://blumeops/TeslaMate/db_password }}@blumeops-pg-rw.databases.svc.cluster.local:5432/teslamate"
password: {{ op://blumeops/TeslaMate/db_password }}