Workspaces

Uses: deck
Related Documentation
Related Resources

decK is Workspace-aware, meaning it can interact with multiple Workspaces.

Manage one Workspace at a time

To manage the configuration of a specific Workspace, use the --workspace flag with deck gateway sync, deck gateway diff, deck gateway dump, or deck gateway reset.

For example, to export the configuration of the Workspace my-workspace:

If you don’t specify a --workspace flag, decK uses the default Workspace.

To set a Workspace directly in the state file, use the _workspace parameter. For example:

_format_version: "3.0"
_workspace: default
services:
  - name: example_service

Note: decK can’t delete Workspaces. If you use --workspace or --all-workspaces with deck gateway reset, decK deletes the entire configuration inside the Workspace, but not the Workspace itself.

Manage multiple Workspaces

You can manage the configurations of all Workspaces with the --all-workspaces flag:

This creates one configuration file per Workspace.

Be careful when using the --all-workspaces flag to avoid overwriting the wrong Workspace. We recommend using the singular --workspace flag in most situations.

However, since a workspace is an isolated unit of configuration, decK doesn’t allow the deployment of multiple Workspaces at a time. Therefore, each Workspace configuration file must be deployed individually:

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!