What you will learn
- Follow a build from the Build button to an image in the registry and a release in the first environment
- Say which environment a deploy lands in and who decides it
- Explain why a promotion does not build anything again
- Say what is kept apart per environment when an agent is promoted
Before you start
- What is Choreo Agent Manager? Not started In progress Done
- A tour of the control side and the data side Not started In progress Done
On this page
Getting an agent from source code to a running pod takes two jobs. A build turns your Git repository into a container image. A deploy puts that image into an 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 where it can run. A promotion later moves it to the next environment. AMS starts each job, but OpenChoreoThe Kubernetes based developer platform that Agent Manager is built on. It stores organisations, projects and agents, builds them and runs the deployments.Analogy:The airport tower and its master plan.See it in the glossary does the work.
Part 1: the build
You press Build
The console sends
POSTto the agent’sbuildsroute. It needs the scopeamp:agent:build. A new agent also gets one build on its own right after it is created.AMS asks OpenChoreo to run it
AMS checks that the agent has source code to build. Then it creates a WorkflowRunAn OpenChoreo object that stands for one run of a build recipe. Agent Manager creates it to start a build, then reads it to learn the build's status.See it in the glossary in OpenChoreo. AMS builds nothing itself. It hands over a job ticket.
Argo clones and builds
In the workflow plane, an Argo workflow clones your repository and builds the image. The step is a BuildpackA tool that turns source code into a container image without a Dockerfile. Agent Manager can also build from a Dockerfile or with a Ballerina workflow.See it in the glossary build for Google buildpacks. A Dockerfile and a Ballerina recipe fill the same place for those kinds of agents.
The image is pushed to the registry
The finished image goes to the workflow plane’s Container registryThe image store of the workflow plane. A finished build pushes its image here, and any environment can pull it later.See it in the glossary, so any environment can pull it later.
The build registers the image and releases it
The last build step gets a short-lived token from ThunderID, registers a WorkloadThe OpenChoreo description of what to run for an agent, including its container image. A build registers one, and a deploy sets the image on it.See it in the glossary in OpenChoreo, cuts a release, and binds it to the first environment. A successful build therefore ends with a release in the first environment, and not only with an image in a store.
You watch it from the console
AMS keeps no build state of its own. Each time you ask, it reads the WorkflowRun from OpenChoreo and works out whether the build is pending, running, done or failed. Build logs come from the observer service, not from AMS.
Part 2: the deploy
Later you pick a built image and press Deploy. The route needs only the environment floor scope, amp:agent:env-non-production.
AMS picks the environment
There is no environment in the deploy request. AMS reads the project’s Deployment pipelineAn ordered list of environments with promotion paths that say where an agent may move next. A project points at one. A deploy lands in its first environment.See it in the glossary and takes the first environment, the one that no promotion path leads to. It then checks that your token may use it. A production environment needs the extra permission from lesson L5.2.2.
AMS assembles that environment's settings
It keeps the platform’s own settings, derives the agent’s AgentIDA separate identity for one agent in one environment. It is held in that environment's ThunderID and lets the agent get tokens for tools.See it in the glossary variables fresh for this environment, and moves any secret values into the secret store. If any of this fails, the deploy stops, so a half built set of settings is not applied.
AMS writes to OpenChoreo
It sets the image on the Workload and attaches the gateway settings. Only the image goes into the shared Workload. Environment variables travel with the environment’s own binding, so they do not leak into other environments.
A release is cut and bound
AMS asks OpenChoreo for a release, then writes the ReleaseBindingThe OpenChoreo object that attaches one release to one environment together with that environment's own settings. It is named after the component and the environment.See it in the glossary for the environment in one write. The binding holds the release name and this environment’s own overrides.
OpenChoreo renders the agent
OpenChoreo turns the binding into the real objects in the data plane: the sandbox template, the service, the gateway routes, the config and the secrets. The controller sends the requests through the cluster-gateway, and the Cluster-agentA small program that runs in each remote plane. It dials out to the control plane over mTLS and carries out instructions inside its own plane.Analogy:A ground station operator who phones the tower, so the tower never needs a key to the ground station.See it in the glossary in the data plane carries them out, as lessons L1.1.1 and L2.2.1 showed.
AMS reads the status
AMS does not trust OpenChoreo’s word alone. It also checks whether any pod is ready, and reports in progress, active or failed.
Part 3: the promotion
When the first environment looks good, you PromotionMoving an agent from one environment to the next allowed one by pointing the next environment at the same release, with that environment's own settings and credentials.See it in the glossary the agent. The request names the environment you move from and the one you move to. AMS first checks that this move exists in the pipeline’s promotion paths and that no deploy is already in progress there. It blocks the move when the source has LLM or MCP configuration and the target has none.
Then it points the target environment at the same release. Nothing is rebuilt. The target gets its own settings, its own secrets and its own AgentID. AgentID credentials do not travel from one environment to the next.
This is the promotion of your own agent inside Agent Manager. It is a different thing from how Choreo Cloud changes its own stage and production environments. There nothing is changed directly: a CR (change request)A change request. In Choreo Cloud, stage and production environments are never changed directly: a CR is created and handed to the SRE team, who make the change.See it in the glossary (change request) is created and handed to the SRE team, who make the change.
Suspend
A binding whose state is Undeploy is shown as suspended. The route that changes that state, POST on deployments/state, needs both amp:agent:suspend and amp:agent:env-non-production.
Your turn
Under Try it, play flow F6 first and stop at the last build step: notice that it reaches into the first environment. Then play flow F7 and, at the promote steps, find what stays the same (the release) and what is different (the settings and credentials). Finish with the matcher.
Recap
- A build makes an image in the registry, registers a Workload and releases it to the first environment.
- AMS starts builds and deploys but does not run them, and it reads their status from OpenChoreo.
- A deploy lands in the pipeline’s first environment, which AMS picks.
- A ReleaseBinding attaches one release to one environment with that environment’s settings.
- A promotion points the next environment at the same release. It does not rebuild, and AgentID credentials do not travel.
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)