Every implementation in this repository is a self-contained example: one
directory, kubectl (plain manifests or kubectl apply -k of a Kustomize
tree), an end-to-end README, and a cleanup command. Examples consume the
main DSH Web image; they are reference material, not
libraries.
| Example | What it demonstrates | Needs |
|---|---|---|
examples/dsh-agents-as-a-service/ |
The full multi-tenant platform pattern: one SandboxTemplate with per-user PVCs, a warm pool, one ~10-line SandboxClaim per user, suspend-when-idle / wake-on-return, and a browser gateway with signup, HttpOnly sessions, an HTTP + WebSocket proxy and two exposure variants (Ingress, or Gateway API + GitHub SSO). |
agent-sandbox with extensions; kind for the e2e script. |
examples/minimal-single-tenant/ |
The smallest useful setup: a single SandboxTemplate, a one-replica warm pool and one SandboxClaim, no gateway — reach DSH Web with a launch-token URL through kubectl port-forward. |
agent-sandbox with extensions. |
The multi-tenant example also documents opt-in gVisor, nodeSelector,
NetworkPolicy, extra provider-key hardening and failed-Pod recovery in
optional hardening.
Full rules: docs/examples.md. scripts/check-examples.sh
enforces the layout, and make check runs it.
README.mdis the walkthrough; manifests are numberedNN-*.yaml, either at the top ofmanifests/(plainkubectl apply -f) or inmanifests/base/under akustomization.yaml(Kustomize, applied withkubectl apply -k).- Optional
manifests/optional/<feature>/andmanifests/exposure/<variant>/each ship a README and their ownkustomization.yaml; exposure variants are mutually exclusive overlays, not a stack. - Cluster-specific values go in the documented
manifests/local/overlay, not in the base; apply it withkubectl apply -k manifests/local/. - Optional
scripts/must be executable, idempotent and self-cleaning;docs/holds deeper material. - Components with a Dockerfile need a README and tests; images are published
nested below the main image (
<registry>/<owner>/<repo>/<example>/<component>). - Secrets are
*.yaml.examplewith placeholders (neversecretGeneratorinputs); every example is listed above with its literalexamples/<name>/path.
Each example README has the exact prerequisites, commands, optional hardening, exposure options and teardown. The multi-tenant example also has a full kind walkthrough that cleans up after itself:
examples/dsh-agents-as-a-service/scripts/e2e-kind.shThe multi-tenant example is a Kustomize tree. Apply one root, not a stack: the
base (kubectl apply -k manifests/base/), or exactly one exposure variant
(kubectl apply -k manifests/exposure/<variant>/), which includes the base. The
optional component and the local overlay are applied explicitly with
kubectl apply -k; kubectl apply -f manifests/ is not the interface.