Workspace Cluster
Interacting with the Kubernetes cluster in a workspace.
User workspaces are deploying with an ephemeral, namespaced Kubernetes cluster. If you need to interact with this cluster...
If you prefer video form, click here for a 5min video!
For more information about DevZero Kubernetes Clusters, visit Kubernetes.
From Anywhere
To view the Kubernetes configuration for a workspace, run dz workspace kubeconfig $workspace_name
To write the config to the default Kubernetes configuration location, run
Then run commands like
From Inside a DevBox
When inside a DevBox context (i.e. when connected to a workspace), the CLI is able to retrieve environmental information from /etc/devzero
.
In a fresh new workspace, you can immediately run:
DevZero reserves the default
namespace for it's managed deployments. Do
not operate on this namespace. Adding or removing resources in this
namespace will lead to undocumented behaviors and cause potential data loss.
Tutorial Video
Here's a video covering how you can access and deploy apps to your workspace's Kubernetes cluster...
Tutorial Steps
- Create a recipe that you can use at devzero.io/dashboard/recipes/new (give it any name and leave everything else blank and click
Create a recipe
).
- Use the following recipe, then
Save and Build
and thenLaunch
once the build completes successfully (it uses Google Cloud Platform'smicroservices-demo
repo).
- Build a workspace from the recipe, and run the following in your terminal:
- Run the following steps inside the SSH session that's connected to your workspace:
- Verify that all the pods are running:
- Port forward the
frontend
to your terminal session
- Visit,
$workspace_name:8088
in your browser to see the app!