Manage Environments
An environment is a grouping of clusters and assets contained within an enterprise. Environments are a convenient way to group workloads by team, like dev
, prod
, and demos
.
Usage and Options
Includes the given cluster within the given environment. DOES NOT modify any infrastructure; only creates an association within Codiac.
Create an environment
-
Use
codiac environment create
to create an environment. -
Follow the prompts to set the tenant, environment name, and cluster. Example:
List environments
- Use
codiac environment list
to list all available environments.
Attach a cluster to an environment
This command creates a link between a cluster and an environment within Codiac. It does not modify any infrastructure.
-
Use
codiac environment cluster attach
to link a cluster to an environment. -
Follow the prompts to select the environment and the cluster.
Detach a cluster from an environment
This command removes the link between a cluster and an environment within Codiac. It does not modify any infrastructure.
-
Use
codiac environment cluster detach
to unlink a cluster from an environment. -
Follow the prompts to select the environment. If more than one cluster is attached to the environment, you will also be prompted to choose the cluster you want to detach.