​Docker​
​AWS credentials​
See cluster configuration to learn how you can customize your cluster.
# install the CLI on your machinebash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.11/get-cli.sh)"​# provision infrastructure on AWS and spin up a clustercortex cluster up
Note: This will create resources in your AWS account which aren't included in the free tier, e.g. an EKS cluster, two Elastic Load Balancers, and EC2 instances (quantity and type as specified above). To use GPU nodes, you may need to subscribe to the EKS-optimized AMI with GPU Support and file an AWS support ticket to increase the limit for your desired instance type.
# clone the Cortex repositorygit clone -b 0.11 https://github.com/cortexlabs/cortex.git​# navigate to the iris classifier examplecd cortex/examples/sklearn/iris-classifier​# deploy the model to the clustercortex deploy​# view the status of the deploymentcortex get --watch​# get the API's endpointcortex get classifier​# classify a samplecurl -X POST -H "Content-Type: application/json" \-d '{ "sepal_length": 5.2, "sepal_width": 3.6, "petal_length": 1.4, "petal_width": 0.3 }' \<API endpoint>
# delete the deploymentcortex delete iris
See uninstall if you'd like to uninstall Cortex.