loft-sh / devpod-provider-kubernetes

DevPod on Kubernetes
Mozilla Public License 2.0
20 stars 16 forks source link

Kubernetes Provider for DevPod

Join us on Slack! Open in DevPod!

Getting started

The provider is available for auto-installation using

devpod provider add kubernetes
devpod provider use kubernetes

Follow the on-screen instructions to complete the setup.

Creating your first devpod env with kubernetes

After the initial setup, just use:

devpod up .

You'll need to wait for the pod and environment setup.

Testing locally

  1. Build the new version in a dev mode with some version tag (e.g. 0.0.1-dev)
    chmod +x ./hack/build.sh
    RELEASE_VERSION=0.0.1-dev ./hack/build.sh --dev
  2. Remove the old provider from your devpod installation (make sure you delete all workspaces using the provider).
    devpod provider delete kubernetes
  3. Install the new provider from the local build
    devpod provider add --name kubernetes --use ./release/provider.yaml 
  4. Test your provider, e.g. with devpod up command. Make sure you have a valid kubeconfig file in your home directory.
    devpod up <repository-url> --provider kubernetes --debug