env create/delete/gc/list manage a namespace per environment, labelled
zero-scale.io/env, with a ResourceQuota, its own gateway and an optional
wildcard route. A zero-scale-env ConfigMap records the env and may override
the platform's database clusters. Hosts use ${ENV_SUFFIX}; databases in a
non-primary env are named db_<env>_<app>_<hash> and carry an owner comment,
so env delete drops only what the env owns. oauth-setup --auth-host serves
every app's login from one callback host. deploy/ manifests no longer
hardcode a namespace; deploy/kustomization.yaml sets it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uKdmp7tLySXvQXALz2x9V
37 lines
976 B
YAML
37 lines
976 B
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: zero-scale-gateway
|
|
labels:
|
|
app.kubernetes.io/name: zero-scale-gateway
|
|
app.kubernetes.io/part-of: zero-scale-platform
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: zero-scale-gateway-role
|
|
labels:
|
|
app.kubernetes.io/name: zero-scale-gateway
|
|
app.kubernetes.io/part-of: zero-scale-platform
|
|
rules:
|
|
# Allows reading app configurations (zero-scale-app-*) and database credentials
|
|
- apiGroups: [""]
|
|
resources: ["configmaps", "secrets", "pods"]
|
|
verbs: ["get", "list", "watch"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: zero-scale-gateway-binding
|
|
labels:
|
|
app.kubernetes.io/name: zero-scale-gateway
|
|
app.kubernetes.io/part-of: zero-scale-platform
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: zero-scale-gateway
|
|
namespace: default
|
|
roleRef:
|
|
kind: Role
|
|
name: zero-scale-gateway-role
|
|
apiGroup: rbac.authorization.k8s.io
|