Skip to main content

Multiple Environments

Each Project can have multiple environments, for example, you might want to keep your Staging environment separate from your Production environment or create a temporary Dev environment to test out changes without impacting any existing environment.

Each environment is almost completely separated from the others, however, they can share secrets and variables if you chose so. Each environment has its own MonkOS cluster to use.

To switch between environments use the Environment Switcher in the middle of the navigation bar. Selecting an environment will immediately place you in context of that environment. ✔️ indicates which environment is currently shown.

Environment Switcher
Environment Switcher

To add new environment hover over Environment Switcher and select Create new environment.

Creating new environment
Creating new environment

This opens a dialog box in which you can set the following:

  • Type - environment type, Production/Staging/Development. This has no special function, it’s used to indicate what kind of environment it will be.
  • Name - name of the new environment,
  • Expiry - When set, will make the environment self-destruct after set period of time. Useful for ephemeral development environments,
  • Schedule - Choose either “All days” of “Weekdays”. If “Weekdays” is selected then the environment will be destroyed at midnight on Friday night and recreated at midnight on Sunday. Useful for saving costs.

Click Save to confirm.

Form: Add new environment
Form: Add new environment

New environment is created. Since each environment has its own cluster, like with a fresh project you will have to wait 2-3 minutes for the cluster to finish setting up before the first deployment of your new environment.

Environments can be edited by clciking Environment settings within the Environment Switcher.

Switching between environments
Switching between environments

Edit environment Type, Name, Expiry and Schedule of the environment using this view. You can also manage secrets and variables within the environment here.

Environment settings page
Environment settings page

Delete the environment by clicking Delete Environment. You will be asked to Confirm your action.

Deleting an environment
Deleting an environment

After deleting the environment context will switch to the next available environment within the project.

Deleting the last environment from the project deletes the project.

Rate this page