Run the self-hosted AI gateway on OpenShift Local
The simulator can now run the self-hosted AI gateway (chart 0.15.3) on OpenShift Local behind the OpenShift router, so the settings that only mean something on OpenShift can be changed one at a time and measured. This is for OpenShift deployments of the self-hosted AI gateway.
Closes #34
What it adds
openshift-local up --rig <rig>joins the VM to a rig as the lab identity.ingress <simulation>opens the router to a simulation and checks that it routes on SNI and carries HTTP/2.aigw up|status|probe|kill-dws|flow-setup|downinstalls the chart underrestricted-v2with one flag for each variable (image, SCC, gRPC path, probe, route timeout, model, proxy image) and probes the result.https-private-ca sign-csrsigns each leaf certificate from a request, so the CA key stays on the simulation.
Request path
flowchart LR
J[Runner job] --> W[Duo CLI wrapper<br/>exports the CA]
W --> R[OpenShift router]
R -->|passthrough| N[NGINX proxy]
R -->|passthrough, direct TLS| G[AI gateway]
R -->|edge, h2c| G
N --> GThe Duo CLI starts under env -i, so the wrapper is what hands it the private CA. The router either passes TLS through to NGINX or the gateway, or terminates it at an edge route.
What each check showed
| Check | Result | Source |
|---|---|---|
| Router timeout | The router cuts a call at its 30 s default. The haproxy.router.openshift.io/timeout annotation on the Route lets a slow call finish. |
Red Hat, Configuring routes, --route-timeout |
| gRPC through an edge route | A plain edge route carries gRPC when the chart's Service port sets appProtocol: kubernetes.io/h2c. |
--grpc edge |
| Probes | With the workflow service killed, HTTP probes keep the pod Ready and the gRPC probe fails. | --probe http|grpc, kill-dws |
| FIPS image | It fails under the random user ID restricted-v2 assigns, because useradd --create-home leaves /home/aigateway at 0700. The overlay with the change from ai-assist MR 8048 starts. |
--image fips-8048, fixtures/openshift-aigw/Dockerfile.fips-8048 |
| Chart's NGINX config | It fails writing /var/cache/nginx under restricted-v2. The config with /tmp paths works. |
--proxy-image alpine|chart, fixtures/openshift-aigw/values.yaml |
| Duo CLI and a private CA | A runner environment entry never reaches the Duo CLI. The wrapper exports NODE_EXTRA_CA_CERTS. |
aigw flow-setup, fixtures/openshift-aigw/flow-ca.sh |
| Idle HTTP/2 hold | The default NGINX config closed an idle connection at 60 s. This repo's config holds it for 100 s. It sets client_header_timeout and the gRPC timeouts to 300 s together, so this does not say which one holds it. |
probe hold, fixtures/openshift-aigw/values.yaml |
gce/openshift-local.md carries the flags and the procedure. Each result came from a run on an OpenShift Local 4.22 VM paired with a simulation.
Tests
just test passes on this head on a VM. The OpenShift self-test, with a stubbed gcloud, covers the rule, each flag and that no verb prints key material. just word-budget and just commit-trailers pass.