feat(deploy): Datasette analytics sidecar + analytics.aleshym.co ingress

Adds a Datasette container alongside the existing server in the same pod so
it can read the SQLite PVC without a second ReadWriteOnce mount. Protected
by a Traefik BasicAuth middleware at analytics.aleshym.co.

Also fixes the ArgoCD repoURL to point to the migrated Gitea hostname
(git.aleshym.co) instead of the old bare IP.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-13 20:17:15 -07:00
parent b88f3df119
commit f6506c57e5
6 changed files with 82 additions and 1 deletions
+41
View File
@@ -19,6 +19,47 @@ spec:
imagePullSecrets:
- name: gitea-registry
containers:
- name: analytics
image: datasetteproject/datasette:0.65.1
args:
- serve
- /data/sol.db
- --host
- "0.0.0.0"
- --port
- "8001"
- --readonly
- --setting
- sql_time_limit_ms
- "5000"
- --setting
- max_returned_rows
- "1000"
ports:
- containerPort: 8001
volumeMounts:
- name: db-data
mountPath: /data
readOnly: true
livenessProbe:
httpGet:
path: /-/alive
port: 8001
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /-/alive
port: 8001
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 25m
memory: 48Mi
limits:
cpu: 200m
memory: 128Mi
- name: server
image: solitaire-server
imagePullPolicy: Always