Files
unkin-agent 8d27f191bf Add autocraft app (#595)
AutoCraft (IUCLabs/autocraft) needs a home in the cluster: one SQLite-backed pod running dashboard, runner and sync, signing in through the iuclabs-coder GitHub App.

- add autocraft StatefulSet (1 replica, data/config PVCs) with bwrap runner settings
- render secrets.json from kv/service/github/iuclabs/coder via VSO; init container installs it 0600 with a persistent session key
- restart the StatefulSet when the Vault secret changes
- serve autocraft.unkin.net from traefik-external with the reflected wildcard cert
- register autocraft in the aitooling ApplicationSet/AppProject

Requires IUCLabs/terraform-vault #11 applied first.

Reviewed-on: #595
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-23 21:50:14 +11:00

31 lines
540 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: autocraft-dashboard
namespace: autocraft
labels:
app.kubernetes.io/name: autocraft
spec:
selector:
app.kubernetes.io/name: autocraft
ports:
- name: http
port: 3005
targetPort: dashboard
---
apiVersion: v1
kind: Service
metadata:
name: autocraft-worker-api
namespace: autocraft
labels:
app.kubernetes.io/name: autocraft
spec:
selector:
app.kubernetes.io/name: autocraft
ports:
- name: http
port: 8981
targetPort: worker-api