Skip to content

Commit 4b44d62

Browse files
authored
fix(helm): use stable gateway container name (ai-openshell#1864)
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
1 parent 42e7b80 commit 4b44d62

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Common findings:
132132
helm -n openshell status openshell
133133
helm -n openshell get values openshell
134134
kubectl -n openshell get statefulset,pod,svc,pvc
135-
kubectl -n openshell logs statefulset/openshell --tail=200
135+
kubectl -n openshell logs statefulset/openshell -c openshell-gateway --tail=200
136136
kubectl -n openshell rollout status statefulset/openshell
137137
```
138138

@@ -238,7 +238,7 @@ If the gateway is healthy but sandbox creation fails:
238238
```bash
239239
kubectl -n openshell get pods
240240
kubectl -n openshell get events --sort-by=.lastTimestamp | tail -n 50
241-
kubectl -n openshell logs statefulset/openshell --tail=200
241+
kubectl -n openshell logs statefulset/openshell -c openshell-gateway --tail=200
242242
```
243243

244244
Check the configured sandbox namespace:
@@ -286,7 +286,7 @@ openshell logs <sandbox-name>
286286
| Docker or Podman sandbox never registers | Wrong callback endpoint or supervisor startup failure | Gateway logs and sandbox container logs |
287287
| Docker GPU e2e fails before GPU sandbox comparison | NVIDIA CDI specs are missing or Docker has not discovered them | `docker info --format '{{json .DiscoveredDevices}}'`, `/etc/cdi`, `/var/run/cdi`, `nvidia-cdi-refresh.service` |
288288
| Kubernetes gateway pod pending | PVC unbound, taint, selector, or insufficient resources | `kubectl -n openshell describe pod <pod>` |
289-
| Kubernetes gateway pod crash loops | Missing secret, bad DB URL, bad TLS config | `kubectl -n openshell logs statefulset/openshell` |
289+
| Kubernetes gateway pod crash loops | Missing secret, bad DB URL, bad TLS config | `kubectl -n openshell logs statefulset/openshell -c openshell-gateway` |
290290
| CLI TLS error | Local mTLS bundle does not match server cert/CA | Check `~/.config/openshell/gateways/<name>/mtls/` |
291291
| Image pull failure | Gateway or sandbox image cannot be pulled | Runtime events and image pull credentials |
292292
| `K8s namespace not ready` with `envoy-gateway-openshell.yaml: the server could not find the requested resource` | Optional Gateway API manifest was applied without Envoy Gateway CRDs, or k3s Helm controller startup exceeded the namespace wait | Apply `deploy/kube/manifests/envoy-gateway-openshell.yaml` manually only after Envoy Gateway is installed and `grpcRoute` is enabled |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
securityContext:
4747
{{- toYaml .Values.podSecurityContext | nindent 8 }}
4848
containers:
49-
- name: {{ .Chart.Name }}
49+
- name: openshell-gateway
5050
securityContext:
5151
{{- toYaml .Values.securityContext | nindent 12 }}
5252
image: {{ include "openshell.image" . | quote }}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ tests:
1818
- exists:
1919
path: spec.template.metadata.annotations["checksum/gateway-config"]
2020

21+
- it: uses a stable gateway container name
22+
template: templates/statefulset.yaml
23+
asserts:
24+
- equal:
25+
path: spec.template.spec.containers[0].name
26+
value: openshell-gateway
27+
2128
- it: mounts the OIDC CA bundle when TLS is disabled
2229
template: templates/statefulset.yaml
2330
set:

0 commit comments

Comments
 (0)