This is a k3s template configured for ephemeral Kubernetes development environments on Gitpod.
Click the button below to start a new development environment:
Click the above "Open in Gitpod" button to start a new workspace. Once you're ready to push your first code changes, Gitpod will guide you to fork this project so you own it.
To get started with k3s on Gitpod, copy the .gitpod.yml
and the .gitpod
folder to your own project. To learn more, please see the Getting Started documentation.
Here's a diagram of the interactions that also shows how the various components interact with each other.
At start, the workspace will start a VM in your gitpod workspace and
automatically install k3s on it. Your local environment will be automatically
configured to use that via the kubectl
When you open your workspace terminal, the kubectl
is already configured for you
via the ~/.kube/config
file.
You can connect to the VM via ssh at any moment. The ssh daemon
is exposed on 127.0.0.1
for the workspace on port 2222
.
- username: root
- password: root
ssh -p 2222 [email protected]
You can use the .gitpod/ssh.sh
and .gitpod/scp.sh
scripts if you want to
avoid the extra steps.