Workspace
Create Workspace
- using arguments
- Using File
initz create workspace --name=<name> --desc=<desc> --prod-cluster=<prod-cluster> --non-prod-cluster=<non-prod-cluster> --registry=<registry> --gpu_enable=true
Flags
--name
- Indicates the name of the workspace.
- required
- Shorthand :
n
--desc
- Indicates the description of the workspace.
- required
--prod-cluster
- stands for: Production cluster.
- required
- Default :
initializ-prod-eks-cluster
--non-prod-cluster
- stands for: Non-production cluster (used for test or stage environments).
- required
- Default :
initializ-np-eks-cluster
--registry
- required
- Default :
DockerConfig
--gpu_enable
- stands for : Graphics Processing Unit
- required
- Default :
false
initz create workspace -f <workspace.json/workspace.yaml>
Example template :
- JSON
- YAML
{
"workspace_name": "example",
"description": "just for example purpose",
"prod_run_cluster": "initializ-prod-eks-gpu-cluster",
"non_prod_run_cluster": "initializ-np-eks-gpu-cluster",
"docker_registry": "DockerConfig",
"supply_chain_template_id": "initializ-secure-cicd",
"is_gpu_enabled":true
}
workspace_name: example1
description: just for example purpose
is_gpu_enabled: false
prod_run_cluster: initializ-prod-eks-cluster
non_prod_run_cluster: initializ-np-eks-cluster
docker_registry: DockerConfig
supply_chain_template_id: initializ-secure-cicd
You can either use the configuration provided in the file above to create the workspace or generate your own example template to do so.
Generate configuration :
- JSON
- YAML
initz create workspace --name="example" --desc="just for example purpose" --prod-cluster="example_prod_cluster" --non-prod-cluster="example_non_prod_cluster" --registry="example_registry" --gpu_enable=<true/false> -t json
initz create workspace --name="example" --desc="just for example purpose" --prod-cluster="example_prod_cluster" --non-prod-cluster="example_non_prod_cluster" --registry="example_registry" --gpu_enable=<true/false> -t yaml
To create a workspace in an organization other than the current one, you need to include an additional flag orgid=< organizationID >
or you can set that particular organization.
Use command :
- To add orgid=< organizationID > :
initz create workspace --name=<name> --desc=<desc> --prod-cluster=<prod-cluster> --non-prod-cluster=<non-prod-cluster> --registry=<registry> --gpu_enable=<true/false> --orgid=<organization ID>
- To set the organization :
initz set org --orgid=<organization ID>
How to use your own cluster and registry
-
How can you use your own prod-cluster and non-prod-cluster
You can use your own cluster instead of the default cluster provided by Initializ.ai. For more information, refer (Bring your own clusters).
-
How can you use your own registry
To use your own registry refer (Bring your own registry)
-
The workspace name is mandatory, while all other arguments are optional. By default, 'prod-cluster,' 'non-prod-cluster,' and 'registry' are assigned, provided by Initializ.ai.
-
For more information, you can use command :
initz create workspace -h