You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90fb33c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(self-hosting): let sim-setup update adopt a manually installed compose file, and correct the last doc gaps (#10786)
* fix(self-hosting): let sim-setup update adopt a manually installed compose file, and correct the last doc gaps
* fix(docs): escape backslashes before pipes in generated self-hosting tables
* fix(sim-setup): pull latest images on every k8s start, and drop a now-used export from the baseline
* fix(self-hosting): fit the self-check to cold EKS Nitro starts, schedule pre-pull where sandboxes run, and keep sandboxes from consolidation
* fix(self-hosting): honor renamed runtime classes, digest pins, and selector conflicts
* fix(sim-setup): keep realtime and migrations on the app's pinned release, and pass image tags as strings
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/docker.mdx
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The wizard writes `docker-compose.prod.yml` and a generated `.env` to `./sim`, a
24
24
25
25
## Manual install [#production-setup]
26
26
27
-
Fetch the Compose file from the [release](https://github.com/simstudioai/sim/releases) you want to run:
27
+
Fetch the Compose file from the [release](https://github.com/simstudioai/sim/releases) you want to run. Use a `vX.Y.Z` release tag (e.g. the release marked Latest), not a `helm-chart-*` tag:
Then run [Verify your install](/platform/self-hosting/verify).
80
80
81
-
Without object storage, uploads go to the `sim_uploads` volume on this host. Back it up, or configure [object storage](/platform/self-hosting/object-storage).
81
+
Without object storage, uploads go to the `sim_uploads` volume on this host (Docker names it `<project>_sim_uploads`, after the Compose project name). Back it up with the commands in [Upgrades](/platform/self-hosting/upgrades#upgrade-procedure), or configure [object storage](/platform/self-hosting/object-storage).
82
82
83
83
## Serve your domain over TLS
84
84
85
-
Put a TLS proxy in front of the stack. Route `/socket.io` to realtime on port 3002 and everything else to the app on port 3000, with WebSocket upgrades and response streaming enabled. [Networking](/platform/self-hosting/networking#reverse-proxy-configuration) has Caddy, Nginx, and Traefik configurations.
85
+
Put a TLS proxy in front of the stack. Route `/socket.io` to realtime on port 3002 and everything else to the app on port 3000, with WebSocket upgrades and response streaming enabled. [Networking](/platform/self-hosting/networking#reverse-proxy-configuration) has Caddyand Nginx configurations.
86
86
87
87
When the proxy runs on the same host, publish the app and realtime on loopback only. Keep the ports, which `sim-setup` checks:
88
88
@@ -142,17 +142,17 @@ To run Ollama, LM Studio, or vLLM with this stack, see [Local models](/platform/
142
142
143
143
## The `sim-setup` CLI
144
144
145
-
Run `npx sim-setup <command>`. Run the wizard, `doctor`, and `config` from the configuration directory. Lifecycle commands find running Compose stacks, source checkouts, and Helm releases, and apply every Compose file a stack was started with. A stopped stack uses `COMPOSE_FILE` from its `.env`. Compose does not record profiles, so set `COMPOSE_PROFILES` in `.env` for a stack that uses them.
145
+
Run `npx sim-setup <command>`. Run the wizard, `doctor`, and `config` from the configuration directory. Lifecycle commands find running Compose stacks, source checkouts, and the `sim-dev` Helm release that `--mode k8s` creates (not other Helm releases), and apply every Compose file a stack was started with. A stopped stack uses `COMPOSE_FILE` from its `.env`. Compose does not record profiles, so set `COMPOSE_PROFILES` in `.env` for a stack that uses them.
146
146
147
147
| Command | Behavior |
148
148
| --- | --- |
149
149
| `sim-setup` | Wizard. `--quick` uses defaults; `--mode compose\|dev\|k8s` picks the target (dev and k8s need a source checkout: run `bun run sim-setup` from the repo root); `--url <origin>` sets a Compose install's public URL. |
150
150
| `status` | Reports detected installations and their health. |
151
-
| `logs` | Follows Compose logs or the Kubernetes app Deployment. |
151
+
| `logs` | Follows Compose logs or the `sim-dev` release's app Deployment. |
152
152
| `start` / `stop` / `restart` | Manages Compose services. For Kubernetes, prints the commands instead of running them. `restart` does not apply changed environment; recreate the containers. |
153
-
| `update` | Pulls the images for `SIM_VERSION` (or rebuilds a source stack) and recreates the services. `--yes` skips the prompt about uploads still inside an old app container. Refuses dev and Kubernetes installs. |
154
-
| `down` | Removes managed containers, or uninstalls the Helm release, after confirming. Data volumes remain. |
155
-
| `reset` | Archives env files and removes managed Compose data after confirming. On Helm it uninstalls the release; PostgreSQL PVCs remain. |
153
+
| `update` | Refreshes the Compose file, pulls the images for `SIM_VERSION` (or rebuilds a source stack), and recreates the services. Works for `sim-setup` and manual installs; a manually downloaded Compose file is backed up beside itself before it is replaced. `--yes` skips the prompts for that and for uploads still inside an old app container. Refuses dev and Kubernetes installs. |
154
+
| `down` | Removes managed containers, or uninstalls the `sim-dev` Helm release, after confirming. Data volumes remain. |
155
+
| `reset` | Archives env files and removes managed Compose data after confirming. On Kubernetes it uninstalls the `sim-dev` release; PostgreSQL PVCs remain. |
156
156
| `config` | Reports configured capabilities and integrations. |
157
157
| `doctor` | Checks env files and reachable services. `--fix` writes supported repairs; `--json` prints structured findings. |
158
158
| `add <feature>` | Configures `email`, `storage`, `sandbox`, `jobs`, `knowledge`, `knowledge-embeddings`, `chat`, `llm`, or `integration <slug>` in a writable `.env`. Refuses Helm releases. |
@@ -166,4 +166,6 @@ Run `npx sim-setup <command>`. Run the wizard, `doctor`, and `config` from the c
166
166
167
167
## Back up and upgrade [#commands]
168
168
169
-
Back up the database, the `sim_uploads` volume, and `.env`. [Upgrades](/platform/self-hosting/upgrades) has the backup, update, and rollback commands.
169
+
Back up the database, the `<project>_sim_uploads` volume, and `.env`. [Upgrades](/platform/self-hosting/upgrades) has the backup, update, and rollback commands.
170
+
171
+
To upgrade, set `SIM_VERSION` in `.env` and run `npx sim-setup update`, for a `sim-setup` or a manual install; it backs up a manually downloaded Compose file first, and `--yes` runs it without prompting. Without `sim-setup`, download `docker-compose.prod.yml` from the new `vX.Y.Z` tag as in [Manual install](#production-setup), set `SIM_VERSION` to that tag, and run `docker compose pull && docker compose up -d` (with `-f docker-compose.prod.yml` unless `COMPOSE_FILE` is set).
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/kubernetes.mdx
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,22 @@ The Helm chart deploys the app, realtime, migrations (as an init container on th
14
14
- An ingress controller and a TLS certificate for public access.
15
15
-`metrics-server` for autoscaling, and the External Secrets Operator if you use it.
16
16
17
+
EKS Auto Mode has no default StorageClass, so the bundled PostgreSQL's volume stays Pending. Create one with Auto Mode's EBS provisioner (the name `gp3` is the one `values-aws.yaml` selects), or set `postgresql.persistence.storageClass` to a class you have:
Each chart version installs one Sim release, its `appVersion`. Resolve the newest chart once and reuse the version for every later command:
@@ -95,6 +111,7 @@ postgresql:
95
111
size: 50Gi
96
112
```
97
113
114
+
- With External Secrets, move `NEXT_PUBLIC_APP_URL` from `app.env` to `app.envDefaults` and `realtime.envDefaults`: the chart refuses an `app.env` key that `externalSecrets.remoteRefs.app` does not map. See the [External Secrets example](#secret-store-examples).
98
115
- `BETTER_AUTH_URL` follows `NEXT_PUBLIC_APP_URL`, and realtime always admits that origin. In existing-Secret mode the chart derives neither: set `NEXT_PUBLIC_APP_URL` and `BETTER_AUTH_URL` in the Secret or `app.env`.
99
116
- Realtime is served on the app host under `/socket.io`. For a separate realtime host, set `ingress.realtime.host`; the chart points the app at it with `NEXT_PUBLIC_SOCKET_URL` (in existing-Secret mode, set that yourself). Cover both hosts with the certificate.
100
117
- The `null` removes the chart's default ingress-nginx annotation. Configure your controller's own HTTPS redirect, body size, WebSocket, timeout, and streaming settings; see [Networking](/platform/self-hosting/networking).
With an existing Secret or External Secrets, drop the `--set` lines. Render first with `helm template` and the same arguments to review what will be applied.
142
+
With an existing Secret or External Secrets, drop the `--set` lines; with External Secrets, `NEXT_PUBLIC_APP_URL` must be in `app.envDefaults` and `realtime.envDefaults`, not `app.env` (step 5). Render first with `helm template` and the same arguments to review what will be applied.
126
143
127
144
For a trial without ingress, install with `app.env.NEXT_PUBLIC_APP_URL=http://localhost:3000` and `ingress.enabled=false` in place of the public values, then forward both services and open [http://localhost:3000](http://localhost:3000):
128
145
@@ -140,7 +157,7 @@ kubectl get cronjobs -n simstudio
140
157
curl -fsS https://sim.yourdomain.com/api/health
141
158
```
142
159
143
-
Run `helm test sim -n simstudio --logs`, then [Verify your install](/platform/self-hosting/verify).
160
+
Run `helm test sim -n simstudio --logs --timeout 10m`, then [Verify your install](/platform/self-hosting/verify).
144
161
145
162
## Secret store examples [#secret-store-examples]
146
163
@@ -159,7 +176,7 @@ postgresql:
159
176
name: sim-postgresql-secret
160
177
```
161
178
162
-
**External Secrets Operator.** Create the store and remote keys first. Non-secret values go in `envDefaults`:
179
+
**External Secrets Operator.** Create the store and remote keys first. Non-secret values go in `envDefaults`, including `NEXT_PUBLIC_APP_URL` from step 5: the chart refuses any `app.env` key not mapped in `remoteRefs.app`:
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/reference-architectures.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,14 @@ Each tab names the chart's example values file. Fetch it at your chart's `helm-c
35
35
| You provision | Notes |
36
36
| --- | --- |
37
37
| EKS cluster | Kubernetes 1.25 or later |
38
-
| EBS CSI driver and a `gp3` StorageClass | The example selects `gp3`; confirm it exists with the installed provisioner |
38
+
| EBS CSI driver and a `gp3` StorageClass | The example selects `gp3`; confirm it exists with the installed provisioner. EKS Auto Mode has no default StorageClass; create one as in [Kubernetes prerequisites](/platform/self-hosting/kubernetes#prerequisites)|
39
39
| AWS Load Balancer Controller | ALB ingress |
40
40
| ACM certificate | ALB discovers it from the ingress hosts, or pin it with `alb.ingress.kubernetes.io/certificate-arn`. ALB cannot use a Kubernetes TLS Secret |
41
41
| RDS or Aurora PostgreSQL | Reachable from the cluster subnets |
42
42
| S3 buckets | One per file purpose |
43
43
| ElastiCache | Optional; the bundled Redis also works |
44
44
45
-
**Identity.** Bind an IAM role to the ServiceAccount with IRSA. Grant it access to your buckets and to anything else you enable, such as Bedrock or SES. **Timeouts.** Raise the ALB idle timeout; see [Networking](/platform/self-hosting/networking#aws-alb-ingress). **Sandboxes.** EKS sandboxes run under Nitro Sandboxes; see [Kubernetes sandboxes](/platform/self-hosting/sandboxes#kubernetes-no-third-party).
45
+
**Identity.** Bind an IAM role to the ServiceAccount with IRSA. Grant it access to your buckets and to anything else you enable, such as Bedrock or SES. **Timeouts.** Raise the ALB idle timeout; see [Networking](/platform/self-hosting/networking#aws-alb-ingress). **Sandboxes.** EKS sandboxes run under Nitro Sandboxes; see [Kubernetes sandboxes](/platform/self-hosting/sandboxes#kubernetes-no-third-party). On Auto Mode they also need the `amazon-vpc-cni` ConfigMap that turns on NetworkPolicy enforcement ([Amazon EKS Auto Mode](/platform/self-hosting/sandboxes#amazon-eks-auto-mode)).
0 commit comments