What you will learn
- Follow how an on-prem environment is created, from the console form to a running gateway
- Say what the script does and what Agent Manager does
- Explain how a new gateway registers itself and connects back to AMS
- Know that adding the environment to a pipeline is a separate step
Before you start
- Organisation, project, agent and environment Not started In progress Done
On this page
A new environment is more than a name. It is a place where agents run, and it needs its own gateway for their traffic and its own sign-in service for their identities. On-prem you create all three with one command that the console prepares for you.
What you get
When the command finishes you have three things for the new EnvironmentA place agents are deployed to, such as development or production. By default each environment gets its own gateway and its own identity server.Analogy:The stages of a theatre: rehearsal room, dress rehearsal, opening night.See it in the glossary: the environment itself in OpenChoreo, an ThunderIDThe open source identity server Agent Manager uses to sign people and services in and to issue signed tokens. The older name Thunder survives in some chart and folder names.Analogy:The passport office that issues the signed documents every checkpoint reads.See it in the glossary that will hold agent identities, and an AI gatewayThe doorway for agent traffic to model vendors and tool servers. It runs each request through a chain of policies, such as keys, limits and guardrails, before passing it on.Analogy:Airside security and customs. ID check, bag scan, then the real boarding document.See it in the glossary that has connected back to AMS. The default setup creates one gateway.
The twelve steps
You can group the steps into four moves.
The console prepares the command
While you fill in the form, the console checks that the sign-in handle you want for the environment’s ThunderID is still free. It then writes a ready-made command with your choices filled in. The console does not build anything itself.
The environment is created
The script asks AMS, with your token, to create the environment. AMS checks that you may create environments, then creates the Environment in OpenChoreo. It starts out as an empty room with no pipeline step pointing to it.
The environment gets its own sign-in service
The script reserves the environment’s sign-in address with AMS, so a clash fails fast. It creates a service password and hands AMS a copy, which AMS stores encrypted. Then it installs a small, separate ThunderID for this environment, told to trust tokens from the platform sign-in.
The gateway registers and connects back
The script installs the gateway with Helm. A one-off Gateway setup jobA one-off job that runs before a gateway starts. It signs in as a service account, registers the gateway with AMS and stores the registration token as a Secret.See it in the glossary signs in as a service account, registers the gateway with AMS and asks for a Gateway registration tokenThe token a gateway-controller shows in an api-key header when it connects to AMS. AMS issues it when the gateway is registered.See it in the glossary. The token is stored as a Kubernetes Secret in the gateway’s namespace. The Gateway operatorA Kubernetes operator in the data plane. When it sees an APIGateway resource, it installs the gateway chart, which holds the controller and the runtime.See it in the glossary then installs the real gateway programs, and the Gateway-controllerThe local brain of one gateway. It dials Agent Manager over a WebSocket, downloads the gateway's configuration and keeps the router in step.See it in the glossary connects to AMS using the token and keeps the connection open.
What is easy to miss
- The script does not add the environment to a pipeline. That is a separate API step. Until it is done, the environment is an empty room that no project can reach.
- The gateway dials AMS, not the other way round. The gateway-controller opens a WebSocket over TLS to AMS’s internal door and shows the registration token in an
api-keyheader. It sends no certificate of its own. - Two identity servers are involved. The setup job signs in at the platform ThunderID, and the new environment ThunderID is a different, per-environment service.
On Choreo Cloud
On Choreo Cloud (SaaS)The hosted Agent Manager that Choreo Labs runs for customers. People sign up and use it instead of installing it.See it in the glossary you do not run a script. Choreo Labs’ provisioning services create the gateway and the identity service for each organisation and environment. Lesson L12.1.1 follows that path.
Your turn
Open Try it and play flow F5. Which step is a script talking straight to a Kubernetes install, and which steps are calls to AMS? Then open the matcher and pair each part with its job.
Recap
- The console prepares a command, and you run it. It creates the environment through AMS, installs an environment ThunderID, then installs a gateway.
- The gateway registers itself with AMS through a setup job, which gets a registration token.
- The gateway-controller then dials AMS with that token and holds the connection open.
- The script does not add the environment to a deployment pipeline. That is a separate step.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)