Component ยท Data side
Gateway bootstrap Job
ON-PREM Job Gateway
What it is
The gateway bootstrap job is a Helm hook that runs before a gateway is installed. It waits for AMS, gets a service token from the platform ThunderID, registers the gateway in AMS, and creates the registration token as a Kubernetes Secret. It exists in the on-prem install.
Why it exists
A gateway cannot connect to AMS until AMS knows it and has issued a credential. The job automates that handshake.
How it works
- Waits up to 120 seconds for the AMS health check.
- Requests a client_credentials token for amp-api-client with gateway scopes.
- Lists gateways. If the name is new, it finds the environment and registers the gateway. Type, vhost and role cannot change afterwards.
- Creates a registration token if none exists and writes it into the Secret named <release>-token.
- On Choreo Cloud the provisioner does this job instead.
Identity and access
It authenticates to the platform ThunderID with the amp-api-client credentials, then to AMS with the resulting Bearer token. Its Kubernetes role lets it create Secrets in the gateway namespace and read or update only the one token Secret.
Key facts
- Runs
- Helm pre-install, upgrade and rollback hook
- Wait for AMS
- Up to 120 seconds
- Edition
- On-prem
- Side
- Data plane (gateway)
- Namespace
- <org>-<env>
Talks to (3)
- calls agent-manager-service (AMS) Registers gateway, mints tokenREST /api/v1 (scheme comes from the chart apiUrl value, default http on port 9000)
- signs in with Platform ThunderID 1.0.0 Gets JWT with amp:gateway:* scopesHTTP POST /oauth2/token
- sends telemetry to Gateway registration token Secret Writes registration token Secretkubectl apply