These migrated to ringtail. Set replicas: 0 (prevents resurrecting the old instances and double-writing the now-ringtail-owned databases) and remove the tailscale Ingress from each (the names tesla/meals/paperless were handed off to the -ringtail ingresses at cutover; a re-created minikube ingress would steal them back). Service/PVC/ExternalSecrets retained for rollback. Manifest deletion + source-DB drop come in a later decommission PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
68 lines
1.9 KiB
YAML
68 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: teslamate
|
|
namespace: teslamate
|
|
spec:
|
|
# 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
|
|
selector:
|
|
matchLabels:
|
|
app: teslamate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: teslamate
|
|
spec:
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: teslamate
|
|
image: registry.ops.eblu.me/blumeops/teslamate:kustomized
|
|
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
|