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

50 lines
1.0 KiB
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: autocraft-external-http-redirect
namespace: autocraft
spec:
hostnames:
- autocraft.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: autocraft-external
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
matches:
- path:
type: PathPrefix
value: /
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: autocraft-external
namespace: autocraft
spec:
hostnames:
- autocraft.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: autocraft-external
sectionName: https
rules:
- backendRefs:
- group: ""
kind: Service
name: autocraft-dashboard
port: 3005
weight: 1
matches:
- path:
type: PathPrefix
value: /