Please note that these are instructions for installing a Rack via the command line. The easiest way to install a Rack is with the Convox Web Console
gcloud init
The following environment variables are required:
GOOGLE_CREDENTIALS
GOOGLE_PROJECT
$ gcloud projects create <id> --set-as-default
GOOGLE_PROJECT
is the id you selectedYou will need to enable billing on this new project before proceeding. Visit https://console.cloud.google.com/billing to set up billing for your project.
$ serviceaccount="convox@${GOOGLE_PROJECT}.iam.gserviceaccount.com"
$ gcloud iam service-accounts create convox
$ gcloud iam service-accounts keys create ~/.gcloud.convox --iam-account="${serviceaccount}"
GOOGLE_CREDENTIALS
is ~/gcloud.convox
$ gcloud projects add-iam-policy-binding ${GOOGLE_PROJECT} --member="serviceAccount:${serviceaccount}" --role="roles/owner"
The following APIs must be enabled for your GCP project:
$ gcloud services enable cloudapis.googleapis.com
$ gcloud services enable compute.googleapis.com
$ gcloud services enable cloudresourcemanager.googleapis.com
$ gcloud services enable container.googleapis.com
$ gcloud services enable serviceusage.googleapis.com
$ gcloud services enable servicemanagement.googleapis.com
$ convox rack install gcp <name> [param1=value1]...
Name | Default | Description |
---|---|---|
cert_duration | 2160h | Certification renew period |
node_type | n1-standard-1 | Node instance type |
preemptible | true | Use preemptible instances |
region | us-east1 | GCP Region |
syslog | Forward logs to a syslog endpoint (e.g. tcp+tls://example.org:1234) |