https://github.com/loft-sh/devpod-provider-gcloud
DevPod on Google Cloud
https://github.com/loft-sh/devpod-provider-gcloud
Last synced: 4 months ago
JSON representation
DevPod on Google Cloud
- Host: GitHub
- URL: https://github.com/loft-sh/devpod-provider-gcloud
- Owner: loft-sh
- License: mpl-2.0
- Created: 2023-03-08T10:31:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T00:28:51.000Z (10 months ago)
- Last Synced: 2025-08-09T19:38:43.898Z (5 months ago)
- Language: Go
- Size: 10.8 MB
- Stars: 8
- Watchers: 5
- Forks: 6
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# GCLOUD Provider for DevPod
[](https://slack.loft.sh/) [](https://devpod.sh/open#https://github.com/loft-sh/devpod-provider-gcloud)
## Getting started
The provider is available for auto-installation using:
```sh
devpod provider add gcloud -o PROJECT= -o ZONE=
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:
```sh
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](https://developers.google.com/accounts/docs/application-default-credentials)
for more information.
### Creating your first devpod workspace with gcloud
After the initial setup, just use:
```sh
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