Commit Graph

11 Commits

Author SHA1 Message Date
claude
030ba83733 Per-app persistent volumes on the shared HA RWX volume
Apps declare volumes: name:/path[:ro] (mounts: still accepted). The gateway
binds /srv/zero-scale-volumes/<app>/<name> into the unit, running it as a
fixed zs-<app> dynamic user so ownership is stable. gateway install creates
zero-scale-volumes-pvc; delete-app --purge --delete-volumes removes the data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uKdmp7tLySXvQXALz2x9V
2026-10-27 06:44:55 -04:00
claude
fdfd615fd9 Add gateway install/status, ingress host routing and delete-app --purge
- gateway install/upgrade renders an HA gateway (2 replicas, RollingUpdate,
  PDB, hostname spread, downward-API namespace, RWX /opt/apps on the platform
  class); a Helm-managed gateway is recorded and left alone
- gateway status shows which apps run on which replica
- ingress add-host/remove-host/list: one Ingress per host or wildcard, TLS
  from a Secret or a cert-manager ClusterIssuer (wildcards require DNS-01),
  upstream-hash-by $host pinning; hosts stored in the platform ConfigMap
- apply skips the per-app Ingress when routed hosts already cover the app
  in the gateway's namespace and no OAuth is used; per-app Ingresses also pin
  by host
- status, logs and binary updates reach every gateway replica
- delete-app --purge [--drop-database]; Postgres drops only databases whose
  owner comment matches; apply records database_engine for later cleanup
2026-10-27 06:44:55 -04:00
claude
cd30ee48ba Share app naming between CLI and gateway; map every hostname to one app
- internal/appname: one naming rule (first label, lowercased, [a-z0-9] only)
- internal/registry: host -> app cache built from zero-scale-app ConfigMaps
  (hosts key), with direct and legacy-name fallbacks and a 10s TTL
- gateway: units, binaries and config keyed by the app's canonical host, so
  secondary hostnames share one process and one config
- reaper reads app config from the registry instead of the API every tick
- zero-scale-ctl writes a hosts key and uses the shared naming rule
2026-10-27 06:44:55 -04:00
Stephen Schuresko
a8039cafc7 fix(runner): validate environment variable names and exclude internal OAuth config keys 2026-10-25 22:24:29 -04:00
Stephen Schuresko
82307ce625 feat: make deployment cluster-neutral, add operator detection with docs links, and clean up hardcoded domains 2026-10-20 18:29:52 -04:00
Stephen Schuresko
1387848297 feat: add shared OAuth2 setup for ingress-nginx
- Introduced GatewayConfig struct to hold OAuth2 configuration in AppConfig.
- Implemented OAuthSetupName method to resolve shared OAuth2 profile name.
- Enhanced LoadConfig function to parse gateway configuration from the config file.
- Added oauth-setup command to create or update shared ingress-nginx OAuth2 setup profiles.
- Implemented ReconcileOAuthSetup function to provision/update OAuth2 credentials and resources.
- Created OAuth2 proxy deployment and service for shared OAuth2 setup.
- Added Ingress configuration for OAuth2 callback routing.
- Updated DeployBinary function to check and upload binaries based on SHA256 hash.
- Enhanced secret management in ProvisionDataLayer to support cross-service references.
- Updated ingress creation to support OAuth2 authentication.
2026-10-19 13:48:09 -04:00
Stephen Schuresko
9a3835b925 feat: Add idle timeout configuration and enhance scaling logic for applications 2026-10-12 12:44:49 -04:00
Stephen Schuresko
4cc8733d1b feat: Add Zero-Scale Platform Management CLI with database provisioning and Kubernetes integration
- Implemented `database.go` for MySQL and PostgreSQL provisioning, including password generation and secret management.
- Created `k8s.go` for Kubernetes command execution, resource checks, and secret/configmap management.
- Developed `main.go` to handle CLI commands for applying configurations, checking status, logging, and managing applications.
- Added `storage.go` for binary deployment to the gateway pod and symlink configuration for application entrypoints.
- Enhanced CLI with commands for application management, including listing, deleting, and uploading binaries.
2026-10-11 23:31:54 -04:00
Stephen Schuresko
d44144e66e feat(reaper): enforce 10s scale-to-zero across all running app units with self-healing recovery 2026-09-24 10:57:17 -04:00
Stephen Schuresko
1321e65be1 Add kubernetes-status dashboard in cmd/status-dashboard with nodes, cores, RAM, uptime, and cluster site directory 2026-09-24 05:15:14 -04:00
Stephen Schuresko
5b4416f7b8 Refactor zero-scale gateway into modular Go microservice packages 2026-09-16 10:13:43 -04:00