1.2 KiB
1.2 KiB
Antigravity Dev Container - Session Notes
Key Architecture Facts
- Image:
ghcr.io/cpfarhood/devcontainer:latest(repo name isdevcontainer, notantigravity) imagePullPolicy: Alwaysin statefulset (set during initial deployment debugging)- Service must NOT be headless (
clusterIP: None) — Cilium gateway can't route to headless services SECURE_CONNECTION=0— TLS is terminated at the gateway, not the app- Container user is
user(UID 1000) — baseimage-gui runs startapp.sh asappuser, sudo is not available - HTTPRoute is managed by Authentik outpost, not in kustomization
Cluster Patterns
- External gateway:
externalingateway-system, handles*.farh.neton port 443 HTTPS only - Hostnames must be exactly
*.farh.net(not*.subdomain.farh.net) to match gateway listener - Authentik outpost Terraform lives in
../kubernetes/terraform/authentik-*-proxy/ - Outpost config uses
externalgateway for public apps,internalfor internal apps
Common Gotchas
baseimage-guicreates user dynamically — don't hardcode usernames in scripts, use numeric UID/GIDchown /homefails (PVC root not owned by container) — only chown subdirectoriessudonot available in startapp.sh — script already runs as correct user