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 createto create an environment. -
Follow the prompts to set the tenant, environment name, and cluster. Example:
List environments
- Use
codiac environment listto 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 attachto 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 detachto 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.