Skip to content

Commit 7f8a882

Browse files
committed
fix(helm): keep shared supervisor runtime credentials in memory
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 57a99e1 commit 7f8a882

4 files changed

Lines changed: 22 additions & 1 deletion

File tree

‎crates/openshell-supervisor/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ control listener: it dials the gateway and receives its assignments from it.
163163
connection begins. Private files live under `--session-root` (proxy CA,
164164
trust directory, SSH socket); the registry owns removal and keeps the route
165165
reserved until the instance has ended and its files are deleted.
166+
The Helm chart mounts this root on a memory-backed `emptyDir`, keeping
167+
per-instance proxy CA private keys off the node filesystem. The files count
168+
toward the supervisor container's memory usage. Durable launch Secrets used
169+
for gateway recovery remain separate from this runtime storage.
166170
- **Status.** After each reconciliation and whenever an instance is admitted,
167171
changes phase or readiness, or is removed, the host sends a complete
168172
`HostStatus` naming the revision it has reconciled to; readiness is set only

‎deploy/helm/openshell/templates/supervisor.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ spec:
123123
{{- end }}
124124
volumes:
125125
- name: run
126-
emptyDir: {}
126+
# Per-instance proxy CA private keys must not use node-backed storage.
127+
emptyDir:
128+
medium: Memory
127129
- name: logs
128130
emptyDir: {}
129131
- name: supervisor-token

‎deploy/helm/openshell/tests/supervisor_test.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ tests:
8080
name: run
8181
mountPath: /run/openshell
8282
documentIndex: 0
83+
- contains:
84+
path: spec.template.spec.volumes
85+
content:
86+
name: run
87+
emptyDir:
88+
medium: Memory
89+
documentIndex: 0
8390
- equal:
8491
path: spec.ports
8592
value:

‎skills/debug-openshell-cluster/SKILL.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ Use gateway metadata, deployment values, or the user's setup notes to identify t
9090
| VM | VM driver logs, rootfs availability, host virtualization support. |
9191
| Extension | External driver process, Unix socket ownership/mode, configured driver name, capability handshake, gateway logs. |
9292

93+
For the shared supervisor (`supervisor_topology = "gateway"`), the chart mounts
94+
`/run/openshell` on a memory-backed `emptyDir` (`medium: Memory`). This holds
95+
per-instance proxy CA private keys and trust files under
96+
`/run/openshell/sessions`; its contents count toward the supervisor container's
97+
memory usage and disappear when the Pod is removed. Check the deployed Pod's
98+
`run` volume if it uses an older chart. Durable launch Secrets used for gateway
99+
recovery are separate and remain in Kubernetes Secret storage.
100+
93101
### Step 3: Check Gateway Startup Dependencies
94102

95103
Before debugging the compute platform, inspect gateway logs for failures in dependencies initialized before the listener becomes ready.

0 commit comments

Comments
 (0)