Install
Prerequisites
Spin up Cortex on your GCP account
# install the CLI
pip install cortex
# spin up Cortex on your GCP account
cortex cluster-gcp up cluster.yaml # (see configuration options below)Configure Cortex
# cluster.yaml
# GKE cluster name
cluster_name: cortex
# GCP project ID
project: <your GCP project ID>
# GCP zone for your cluster
zone: us-east1-c
# list of cluster node pools; the smaller index, the higher the priority of the node pool
node_pools:
- name: np-cpu # name of the node pool
instance_type: n1-standard-2 # instance type
# accelerator_type: nvidia-tesla-t4 # GPU to attach to your instance (optional)
# accelerators_per_instance: 1 # the number of GPUs to attach to each instance (optional)
min_instances: 1 # minimum number of instances
max_instances: 5 # maximum number of instances
preemptible: false # enable the use of preemptible instances
- name: np-gpu
instance_type: n1-standard-2
accelerator_type: nvidia-tesla-t4
accelerators_per_instance: 1
min_instances: 1
max_instances: 5
preemptible: false
...
# 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
# API load balancer scheme [internet-facing | internal]
api_load_balancer_scheme: internet-facing
# operator load balancer scheme [internet-facing | internal]
# note: if using "internal", you must be within the cluster's VPC or configure VPC Peering to connect your CLI to your cluster operator
operator_load_balancer_scheme: internet-facingLast updated