Skip to content
/ template-k3s Public template

The k3s template, configured for Gitpod (www.gitpod.io) to give you pre-built, ephemeral Kubernetes development environments in the cloud.

License

Notifications You must be signed in to change notification settings

gitpod-io/template-k3s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A K3S template on Gitpod

This is a k3s template configured for ephemeral Kubernetes development environments on Gitpod.

Next Steps

Click the button below to start a new development environment:

Open in Gitpod

Get Started With Your Own Project

A new project

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.

An existing project

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.

Notes & caveats

Here's a diagram of the interactions that also shows how the various components interact with each other.

diagram.svg

Usage

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

Connecting via kubectl

When you open your workspace terminal, the kubectl is already configured for you via the ~/.kube/config file.

Kubectl from my local terminal

Connecting via SSH

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.

About

The k3s template, configured for Gitpod (www.gitpod.io) to give you pre-built, ephemeral Kubernetes development environments in the cloud.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages