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
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: zero-scale-gateway
|
|
labels:
|
|
app: zero-scale-gateway
|
|
app.kubernetes.io/name: zero-scale-gateway
|
|
app.kubernetes.io/part-of: zero-scale-platform
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: zero-scale-gateway
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: zero-scale-gateway
|
|
app.kubernetes.io/name: zero-scale-gateway
|
|
spec:
|
|
serviceAccountName: zero-scale-gateway
|
|
containers:
|
|
- name: systemd-runner
|
|
# Replace with your container registry image or build locally via 'make image'
|
|
image: localhost:32000/systemd-runner:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- mountPath: /run
|
|
name: run
|
|
- mountPath: /run/lock
|
|
name: run-lock
|
|
- mountPath: /opt/apps
|
|
name: apps-volume
|
|
volumes:
|
|
- name: run
|
|
emptyDir:
|
|
medium: Memory
|
|
- name: run-lock
|
|
emptyDir:
|
|
medium: Memory
|
|
- name: apps-volume
|
|
persistentVolumeClaim:
|
|
claimName: zero-scale-binaries-pvc
|
|
|