ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Put OpenChoreo's seven deploy objects in order, from ComponentType to RenderedRelease
  • Say what the agent-api ComponentType allows and what it renders
  • Explain why a promotion points the next environment at the same release instead of building again
  • Tell what is shared between environments and what belongs to one environment only

Before you start

On this page

When you press Deploy, Agent Manager does not start a container. It writes a few objects into , and OpenChoreo turns them into pods. Those objects have names that sound alike, and mixing them up is the most common stumble in this area. Learn the order once and the rest follows.

The seven objects, in order

  1. ComponentType

    A is a template for a kind of agent. Agent Manager’s template is agent-api. It has workload type proxy, it requires at least one endpoint, and it allows three build workflows and five traits. A sibling template, external-agent-api, is used for agents that run outside the platform.

  2. Component

    A is one agent, inside a project. An agent that the platform builds and runs is a Component of the type agent-api. An external agent uses external-agent-api.

  3. Workload

    A says what to run, including the container image. A build registers one, and a deploy sets the image on it. Agent Manager keeps environment variables and files out of the Workload and puts them in the binding’s overrides, so each environment keeps its own.

  4. Trait

    A is an optional extra that a Component type allows. The api-configuration trait adds the gateway route and policies for an agent. The others add OpenTelemetry instrumentation, or the route for agent to agent traffic.

  5. ComponentRelease

    A is a frozen snapshot of the Component, its Workload, its type and its traits. Agent Manager asks OpenChoreo to generate one for each deploy.

  6. ReleaseBinding

    A places one release in one environment. It is named after the component and the environment, and it carries that environment’s own overrides: variables and files, trait settings, and the runtime class that comes from the environment’s isolation tier.

  7. RenderedRelease

    A is what the controller produces from a binding and its release, by filling in the type’s blueprint for that environment. A second controller applies it in the data plane through the cluster-gateway, and the cluster-agent there carries out the requests. Deleting the RenderedRelease removes what it applied.

Component

Component to ReleaseBinding chain

Control side Control plane BOTH

The chain of OpenChoreo objects that turns an agent definition into running pods: Component, then ComponentRelease, then ReleaseBinding, then RenderedRelease. Each step freezes or places the previous one.

What the agent-api type renders

In Agent Manager’s chart, the agent-api type has ten resource entries for each environment: a SandboxTemplate, a SandboxWarmPool, an autoscaler, a Service, an external HTTPRoute, an internal HTTPRoute, two ConfigMaps (variables and files) and two ExternalSecrets (variables and files). Some entries produce nothing unless they are needed. The autoscaler exists when autoscaling is on, each HTTPRoute exists for an endpoint of that visibility, and the ConfigMaps and ExternalSecrets are made from the variables, files and secrets that the environment carries. The template is the pod blueprint, and the ExternalSecrets bring secret values into the pod without putting them in the template. The trait api-configuration then patches the routes so that traffic goes through the API Platform Gateway first.

Component

ComponentType agent-api

Control side Control plane BOTH

A ComponentType is an OpenChoreo template for a kind of component. The agent-api ComponentType is Agent Manager's template for an internally built agent. It decides which Kubernetes objects are created for every agent that uses it.

Who writes what

ObjectWritten by
ComponentType, TraitThe Agent Manager chart, when it is installed.
WorkloadThe last step of a build, which registers the image. A deploy then sets the image on it.
ComponentReleaseOpenChoreo, when the build’s last step or Agent Manager asks it to generate a release.
ReleaseBindingThe build’s last step for the first environment, then Agent Manager on every deploy and promote.
RenderedReleaseOpenChoreo’s controller.

One more pair, for the project

A binding needs somewhere to land. A project gets its own namespace in each environment, called the cell namespace. A ProjectType creates it, and a ProjectReleaseBinding places it. Before a deploy writes anything, Agent Manager makes sure that the project’s binding for the environment exists, because the agent’s binding would fail without the namespace.

Why promotion does not build again

A promotion finds the release name in the source environment’s binding. Then it creates or updates the binding for the next environment with the same release name and with that environment’s own settings. Nothing is built and no new release is cut.

So what is shared is the release: the image, the type and the traits. What differs is the binding: the variables, the trait settings and the credentials that belong to one environment.

In Choreo Cloud

The objects are the same. The ComponentTypes are created for each organisation when it is set up, by platform-api’s bootstrap or, where that route is switched on, by the agent-manager-provisioner, not by a chart installed by hand. The ten-entry description above is the one in Agent Manager’s chart.

Your turn

Under Try it, play flow F7. At step 5, what does the one write to the binding carry? At step 11, which parts of the binding come from the source environment and which are the target’s own? Then play the matcher and pair each object with the question it answers. Finish with the story and watch the release snapshot turn into a render.

Recap

  • The order is ComponentType, Component, Workload, Trait, ComponentRelease, ReleaseBinding, RenderedRelease.
  • The agent-api type allows three build workflows and five traits, and has ten resource entries to render for each environment, some of them only when needed.
  • A release is a frozen snapshot that is shared. A binding places it in one environment with that environment’s own settings.
  • A promotion points the next environment at the same release. It builds nothing.

Try it

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. 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.
  2. A frozen snapshot. AMS cuts a release, a frozen snapshot of the agent and its image, and pins the environment's settings to it.
  3. 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.
  4. 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)