Files
argocd-apps/apps/base/autocraft/gateway.yaml
T
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

32 lines
672 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
labels:
traefik.io/instance: external
name: autocraft-external
namespace: autocraft
spec:
gatewayClassName: traefik-external
listeners:
- allowedRoutes:
namespaces:
from: Same
hostname: autocraft.unkin.net
name: http
port: 80
protocol: HTTP
- allowedRoutes:
namespaces:
from: Same
hostname: autocraft.unkin.net
name: https
port: 443
protocol: HTTPS
tls:
certificateRefs:
- group: ""
kind: Secret
name: wildcard-unkin-net-tls
mode: Terminate