8d27f191bf
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>
19 lines
362 B
YAML
19 lines
362 B
YAML
---
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
|
kind: VaultAuth
|
|
metadata:
|
|
name: default
|
|
namespace: autocraft
|
|
spec:
|
|
allowedNamespaces:
|
|
- autocraft
|
|
kubernetes:
|
|
audiences:
|
|
- vault
|
|
role: autocraft
|
|
serviceAccount: autocraft
|
|
tokenExpirationSeconds: 600
|
|
method: kubernetes
|
|
mount: k8s/au/syd1
|
|
vaultConnectionRef: vso-system/default
|