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
- The four planes Not started In progress Done
On this page
When you press Deploy, Agent Manager does not start a container. It writes a few objects into 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, 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
ComponentType
A ComponentTypeAn OpenChoreo template for a kind of component. Agent Manager's agent-api type decides which Kubernetes objects are made for every agent that uses it.Analogy:An aircraft model: every aircraft ordered from it is built the same way.See it in the glossary 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.Component
A ComponentOpenChoreo's name for one deployable thing. In Agent Manager each agent is a Component inside a project, of the type agent-api or external-agent-api.See it in the glossary 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 usesexternal-agent-api.Workload
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 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.
Trait
A TraitAn optional extra that an OpenChoreo component type allows. The api-configuration trait, for example, adds an agent's route and policies on the API Platform Gateway.Analogy:Optional equipment fitted to an aircraft.See it in the glossary is an optional extra that a Component type allows. The
api-configurationtrait adds the gateway route and policies for an agent. The others add OpenTelemetry instrumentation, or the route for agent to agent traffic.ComponentRelease
A Release (ComponentRelease)A frozen snapshot of an agent and its image in OpenChoreo. Promoting an agent points the next environment at the same release instead of building again.Analogy:A sealed, signed copy of the aircraft's logbook that every gate can use.See it in the glossary is a frozen snapshot of the Component, its Workload, its type and its traits. Agent Manager asks OpenChoreo to generate one for each deploy.
ReleaseBinding
A 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 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.
RenderedRelease
A RenderedReleaseWhat OpenChoreo's controller produces from a release binding and its release, by filling in the component type's blueprint for one environment. The data plane's cluster-agent applies it.Analogy:The prepared aircraft standing on the apron.See it in the glossary 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.
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 Agent sandboxThe runtime that runs agents in the data plane as SandboxTemplate and SandboxWarmPool objects instead of plain Deployments. An environment's isolation tier picks the runtime class.See it in the glossary 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.
Who writes what
| Object | Written by |
|---|---|
| ComponentType, Trait | The Agent Manager chart, when it is installed. |
| Workload | The last step of a build, which registers the image. A deploy then sets the image on it. |
| ComponentRelease | OpenChoreo, when the build’s last step or Agent Manager asks it to generate a release. |
| ReleaseBinding | The build’s last step for the first environment, then Agent Manager on every deploy and promote. |
| RenderedRelease | OpenChoreo’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-apitype 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.
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)