2026-01-22 21:25:44 -08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: teslamate
|
|
|
|
|
namespace: teslamate
|
|
|
|
|
spec:
|
Wave 1 indri→ringtail migration: paperless, teslamate, mealie (#363)
Migrate paperless, teslamate, and mealie off the OOM-saturated minikube-indri node onto ringtail k3s, shedding ~1.1 GiB of resident load. Second chain in the indri-k8s decommission after immich.
**Containers ported to Nix (default.nix), build-verified on ringtail:**
- paperless → wraps nixpkgs paperless-ngx 2.20.15 (pinned unstable); runs as web/worker/beat/consumer
- mealie → wraps nixpkgs mealie 3.16.0 (forward 4-minor bump, breaking-change reviewed); single gunicorn, SQLite
- teslamate → from-scratch beamPackages mixRelease (not in nixpkgs); erlang_27+elixir_1_18, npm assets, ex_cldr locales pre-fetched
**Data:** cold downtime-tolerant cutover. paperless+teslamate postgres dump/restore from quiesced source into a new ringtail blumeops-pg CNPG cluster; mealie SQLite PVC copied. Source DBs untouched until verified (rollback = repoint).
**Also:** ringtail blumeops-pg cluster + ExternalSecrets scaffold; fixes pre-existing shower version-check drift.
Runbook: docs/how-to/ringtail/migrate-wave1-ringtail.md. Deploy-from-branch + cutover happens before merge; container images rebuilt from main after merge.
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/363
2026-06-03 10:34:00 -07:00
|
|
|
# Migrated to ringtail (teslamate-ringtail). Scaled to 0 to prevent
|
|
|
|
|
# double-writing the now-ringtail-owned database; manifest retained for
|
|
|
|
|
# rollback until the decommission PR. See [[migrate-wave1-ringtail]].
|
|
|
|
|
replicas: 0
|
2026-01-22 21:25:44 -08:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: teslamate
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: teslamate
|
|
|
|
|
spec:
|
2026-03-24 16:19:40 -07:00
|
|
|
securityContext:
|
|
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
2026-01-22 21:25:44 -08:00
|
|
|
containers:
|
|
|
|
|
- name: teslamate
|
2026-03-06 08:15:06 -08:00
|
|
|
image: registry.ops.eblu.me/blumeops/teslamate:kustomized
|
2026-01-22 21:25:44 -08:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 4000
|
|
|
|
|
env:
|
|
|
|
|
- name: DATABASE_USER
|
|
|
|
|
value: "teslamate"
|
|
|
|
|
- name: DATABASE_PASS
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: teslamate-db
|
|
|
|
|
key: password
|
|
|
|
|
- name: DATABASE_NAME
|
|
|
|
|
value: "teslamate"
|
|
|
|
|
- name: DATABASE_HOST
|
|
|
|
|
value: "blumeops-pg-rw.databases.svc.cluster.local"
|
|
|
|
|
- name: ENCRYPTION_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: teslamate-encryption
|
|
|
|
|
key: key
|
|
|
|
|
- name: DISABLE_MQTT
|
|
|
|
|
value: "true"
|
|
|
|
|
- name: CHECK_ORIGIN
|
|
|
|
|
value: "false"
|
|
|
|
|
- name: TZ
|
|
|
|
|
value: "America/Los_Angeles"
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: "128Mi"
|
|
|
|
|
cpu: "100m"
|
|
|
|
|
limits:
|
|
|
|
|
memory: "512Mi"
|
|
|
|
|
cpu: "500m"
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /
|
|
|
|
|
port: 4000
|
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /
|
|
|
|
|
port: 4000
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
periodSeconds: 10
|