Make sure Docker is running on your machine.
If you're using GPUs, make sure your GPU quota is sufficient (see here).
# install the CLIpip install cortex​# spin up Cortex on your GCP accountcortex cluster-gcp up # or: cortex cluster-gcp up --config cluster.yaml (see configuration options below)
# cluster.yaml​# GKE cluster namecluster_name: cortex​# GCP project IDproject: <your GCP project ID>​# GCP zone for your clusterzone: us-central1-a​# instance typeinstance_type: n1-standard-2​# minimum number of instancesmin_instances: 1​# maximum number of instancesmax_instances: 5​# GPU to attach to your instance (optional)# accelerator_type: nvidia-tesla-t4​# the name of the network in which to create your cluster# network: default​# the name of the subnetwork in which to create your cluster# subnet: default
The docker images used by the Cortex cluster can also be overridden, although this is not common. They can be configured by adding any of these keys to your cluster configuration file (default values are shown):
image_operator: quay.io/cortexlabs/operator:0.26.0image_manager: quay.io/cortexlabs/manager:0.26.0image_downloader: quay.io/cortexlabs/downloader:0.26.0image_statsd: quay.io/cortexlabs/statsd:0.26.0image_istio_proxy: quay.io/cortexlabs/istio-proxy:0.26.0image_istio_pilot: quay.io/cortexlabs/istio-pilot:0.26.0image_pause: quay.io/cortexlabs/pause:0.26.0