ON-PREM CHOREO CLOUD BOTH

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

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 where it can run. A promotion later moves it to the next environment. AMS starts each job, but does the work.

Flow

Building an agent image

F6 12 steps ON-PREM

A build request becomes an OpenChoreo WorkflowRun, runs as an Argo workflow in the workflow plane, pushes an image to the registry, registers it as a Workload, and its progress and logs come back through AMS polling and the observer.

Part 1: the build

  1. You press Build

    The console sends POST to the agent’s builds route. It needs the scope amp:agent:build. A new agent also gets one build on its own right after it is created.

  2. AMS asks OpenChoreo to run it

    AMS checks that the agent has source code to build. Then it creates a in OpenChoreo. AMS builds nothing itself. It hands over a job ticket.

  3. Argo clones and builds

    In the workflow plane, an Argo workflow clones your repository and builds the image. The step is a build for Google buildpacks. A Dockerfile and a Ballerina recipe fill the same place for those kinds of agents.

  4. The image is pushed to the registry

    The finished image goes to the workflow plane’s , so any environment can pull it later.

  5. The build registers the image and releases it

    The last build step gets a short-lived token from ThunderID, registers a 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.

  6. 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.

Component

AM build ClusterWorkflows

Data side Workflow plane BOTH

The build workflows are the recipes OpenChoreo uses to turn an agent's source code into a running image. Agent Manager provides three: amp-docker, amp-google-cloud-buildpacks and amp-ballerina-buildpack. They run on the workflow plane.

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.

  1. AMS picks the environment

    There is no environment in the deploy request. AMS reads the project’s 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.

  2. AMS assembles that environment's settings

    It keeps the platform’s own settings, derives the agent’s 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.

  3. 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.

  4. A release is cut and bound

    AMS asks OpenChoreo for a release, then writes the for the environment in one write. The binding holds the release name and this environment’s own overrides.

  5. 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 in the data plane carries them out, as lessons L1.1.1 and L2.2.1 showed.

  6. 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.

Flow

Deploying and promoting an agent across environments

F7 11 steps ON-PREM

A deploy pins one image and one environment's settings into a ReleaseBinding in the pipeline's first environment, OpenChoreo renders it in the data plane, and a promote copies the same release into the next environment with that environment's own credentials.

Part 3: the promotion

When the first environment looks good, you 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 (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.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Watch the story

What to do: scroll, press J and K, or use the Next scene button. The diagram follows the story.

Loading the story...

  1. Three moves, build then deploy then promote. A source agent goes through three moves. It is built into an image, deployed to the first environment, and promoted to later ones.
  2. You press Build. The console sends the request to AMS with your token, which must carry the build permission.
  3. AMS hands over a job ticket. AMS builds nothing itself. It tells OpenChoreo to start a build run, like handing a job ticket to the factory floor.
  4. The workflow plane bakes the image. Argo copies your code from Git and builds it into a container image.
  5. The image goes to a registry. The finished image is pushed to the workflow plane's registry, so any environment can pull it later.
  6. The build ends with a release. The last build step registers the image with OpenChoreo and releases it to the first environment. A successful build is more than an image in a store.
  7. Watching a build. AMS keeps no build state of its own. Each time you ask, it reads the run from OpenChoreo.
  8. Build logs come from the observer. Build logs do not come from AMS. The console asks the observer service directly, using the same sign-in token.
  9. Deploy lands in the first environment. A deploy goes to the first environment of the project's pipeline. A production environment needs an extra permission.
  10. A frozen snapshot. AMS cuts a release, a frozen snapshot of the agent and its image, and pins the environment's settings to it.
  11. OpenChoreo renders it in the data plane. OpenChoreo fills in the agent's blueprint for this environment, creating the pod template, the address, the gateway routes and the secrets.
  12. Promote the same release. Promotion does not rebuild anything. The next environment is pointed at the same snapshot, with its own settings.

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)