Skip to content

Commit 37afc69

Browse files
vishalbolludeliahu
authored andcommitted
Seperate cluster config from images (#871)
(cherry picked from commit 739c6d4)
1 parent 979df83 commit 37afc69

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/cluster-management/config.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
The Cortex cluster may be configured by providing a configuration file to `cortex cluster up` or `cortex cluster update` via the `--config` flag (e.g. `cortex cluster up --config=cluster.yaml`). Below is the schema for the cluster configuration file, with default values shown (unless otherwise specified):
44

5-
<!-- CORTEX_VERSION_BRANCH_STABLE -->
6-
5+
<!-- CORTEX_VERSION_MINOR -->
76
```yaml
87
# cluster.yaml
98

@@ -45,7 +44,14 @@ log_group: cortex
4544
# whether to use spot instances in the cluster (default: false)
4645
# see https://cortex.dev/v/0.14/cluster-management/spot-instances for additional details on spot configuration
4746
spot: false
47+
```
48+
49+
The docker images used by Cortex are listed below. They can be overridden to use custom images by specifying them in your cluster configuration file.
4850
51+
You can follow these [instructions](../deployments/system-packages.md) to build and push custom Docker images to a registry and configure Cortex to use them.
52+
53+
<!-- CORTEX_VERSION_BRANCH_STABLE -->
54+
```yaml
4955
# docker image paths
5056
image_python_serve: cortexlabs/python-serve:0.14.1
5157
image_python_serve_gpu: cortexlabs/python-serve-gpu:0.14.1

docs/deployments/system-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mkdir my-api && cd my-api && touch Dockerfile
1212

1313
The Docker images used to deploy your models are listed below. Based on the Cortex Predictor and compute type specified in your API configuration, choose a Cortex image to use as the base for your custom Docker image.
1414

15-
### Base Cortex images
15+
### Base Cortex images for model serving
1616

1717
<!-- CORTEX_VERSION_BRANCH_STABLE x5 -->
1818
* Python (CPU): cortexlabs/python-serve:0.14.1

0 commit comments

Comments
 (0)