Component ยท Shared or other
Environment (OC Environment)
What it is
An environment is a place agents are deployed to, such as development, staging or production. In OpenChoreo it is an Environment resource that points at a data plane and carries a few settings: whether it is production (isProduction), an optional isolation tier (gvisor or kata, for stronger sandboxing) and the address its agents are published on. Each environment also has its own API Platform Gateway and its own environment ThunderID.
Environments are the stages of a theatre: rehearsal room, dress rehearsal, opening night. The play is the same, but the audience, the rules and who may walk on stage differ.
Why it exists
Keeping environments separate lets one agent run in development and production with different gateways, keys and identities, and lets permissions differ by tier.
How it works
- POST /orgs/{org}/environments (permission amp:environment:create) creates the Environment in OpenChoreo. On-prem, the console gives the user a script, add-environment.sh, that does this and installs the gateway and ThunderID.
- A deployment pipeline names the environments in order. A project's pipeline decides which environments its agents can reach.
- Acting on any environment needs amp:agent:env-non-production. A production environment also needs amp:agent:env-production.
- An unsupported isolation tier is refused. The only values accepted are empty, gvisor and kata.
- The chart creates one environment called default, and it is not marked production.
Key facts
- OpenChoreo kind
- Environment
- Create permission
- amp:environment:create
- Production check
- amp:agent:env-production in addition
- Isolation tiers
- gvisor, kata
- Default environment
- default (not production)
- Per environment
- One gateway and one ThunderID
Used by (1)
- needed by DeploymentPipeline promotionPaths between environments
Inside and around
Part of: Organization (OU = namespace)