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>
34 lines
810 B
YAML
34 lines
810 B
YAML
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: aitooling-apps
|
|
namespace: argocd
|
|
spec:
|
|
generators:
|
|
- git:
|
|
repoURL: https://git.unkin.net/unkin/argocd-apps
|
|
revision: HEAD
|
|
directories:
|
|
- path: apps/overlays/*/autocraft
|
|
- path: apps/overlays/*/litellm
|
|
- path: apps/overlays/*/paperclip
|
|
template:
|
|
metadata:
|
|
name: 'aitooling-{{path[3]}}'
|
|
spec:
|
|
project: aitooling
|
|
source:
|
|
repoURL: https://git.unkin.net/unkin/argocd-apps
|
|
targetRevision: HEAD
|
|
path: '{{path}}'
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: '{{path[3]}}'
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- ServerSideApply=true
|