loft-sh / devpod-provider-gcloud

DevPod on Google Cloud
Mozilla Public License 2.0
4 stars 4 forks source link

GCLOUD Provider for DevPod

Join us on Slack! Open in DevPod!

Getting started

The provider is available for auto-installation using:

devpod provider add gcloud -o PROJECT=<project id to use> -o ZONE=<Google Cloud zone to create the VMs in>
devpod provider use gcloud

Option PROJECT must be set when adding the provider (unless the project to be used is set as the current project in gcloud).

Option ZONE should be set when adding the provider.

Options can be set using devpod provider set-options, for example:

devpod provider set-options gcloud -o DISK_IMAGE=my-custom-vm-image

Be aware that authentication is obtained using gcloud CLI tool, take a look here for more information.

Creating your first devpod workspace with gcloud

After the initial setup, just use:

devpod up .

You'll need to wait for the machine and workspace setup.

Customize the VM Instance

This provides has the following options:

NAME REQUIRED DESCRIPTION DEFAULT
DISK_IMAGE false The disk image to use. projects/cos-cloud/global/images/cos-101-17162-127-5
DISK_SIZE false The disk size to use (GB). 40
MACHINE_TYPE false The machine type to use. c2-standard-4
PROJECT true The project id to use.
ZONE true The google cloud zone to create the VM in. E.g. europe-west1-d
NETWORK false The network id to use.
SUBNETWORK false The subnetwork id to use.
TAG false A tag to attach to the instance. devpod
SERVICE_ACCOUNT false A service account to attach to instance