Skip to content

Commit 27062b6

Browse files
authored
Update docs (#1994)
1 parent d01b417 commit 27062b6

36 files changed

+167
-507
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
[Website](https://www.cortex.dev)[Slack](https://community.cortex.dev)[Docs](https://docs.cortex.dev)
66

7-
<br>
8-
9-
# Deploy, manage, and scale machine learning models in production
7+
# Deploy machine learning models to production
108

119
Cortex is a cloud native model serving platform for machine learning engineering teams.
1210

@@ -36,6 +34,8 @@ $ cortex deploy apis.yaml
3634
all APIs are ready!
3735
```
3836

37+
<br>
38+
3939
## Manage
4040

4141
* Create A/B tests and shadow pipelines with configurable traffic splitting.
@@ -51,11 +51,13 @@ image-classifier batch 64
5151
video-analyzer async 16
5252
```
5353

54+
<br>
55+
5456
## Scale
5557

5658
* Configure workload and cluster autoscaling to efficiently handle large-scale production workloads.
5759
* Create clusters with different types of instances for different types of workloads.
58-
* Spend less on cloud infrastructure by letting Cortex manage spot or preemptible instances.
60+
* Spend less on cloud infrastructure by letting Cortex manage spot instances.
5961

6062
```text
6163
$ cortex cluster info

dev/generate_cli_md.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ commands=(
4242
"cluster configure"
4343
"cluster down"
4444
"cluster export"
45-
"cluster-gcp up"
46-
"cluster-gcp info"
47-
"cluster-gcp down"
4845
"env configure"
4946
"env list"
5047
"env default"

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
**Please view our documentation at [docs.cortex.dev](https://docs.cortex.dev)**
1+
**Please read our documentation at [docs.cortex.dev](https://docs.cortex.dev)**

docs/clients/cli.md

Lines changed: 6 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Flags:
1212
-e, --env string environment to use
1313
-f, --force override the in-progress api update
1414
-y, --yes skip prompts
15-
-o, --output string output format: one of pretty|json (default "pretty")
15+
-o, --output string output format: one of json (default "pretty")
1616
-h, --help help for deploy
1717
```
1818

@@ -27,7 +27,7 @@ Usage:
2727
Flags:
2828
-e, --env string environment to use
2929
-w, --watch re-run the command every 2 seconds
30-
-o, --output string output format: one of pretty|json (default "pretty")
30+
-o, --output string output format: one of json (default "pretty")
3131
-v, --verbose show additional information (only applies to pretty output format)
3232
-h, --help help for get
3333
```
@@ -57,7 +57,7 @@ Usage:
5757
Flags:
5858
-e, --env string environment to use
5959
-f, --force override the in-progress api update
60-
-o, --output string output format: one of pretty|json (default "pretty")
60+
-o, --output string output format: one of json (default "pretty")
6161
-h, --help help for patch
6262
```
6363

@@ -72,7 +72,7 @@ Usage:
7272
Flags:
7373
-e, --env string environment to use
7474
-f, --force override the in-progress api update
75-
-o, --output string output format: one of pretty|json (default "pretty")
75+
-o, --output string output format: one of json (default "pretty")
7676
-h, --help help for refresh
7777
```
7878

@@ -88,7 +88,7 @@ Flags:
8888
-e, --env string environment to use
8989
-f, --force delete the api without confirmation
9090
-c, --keep-cache keep cached data for the api
91-
-o, --output string output format: one of pretty|json (default "pretty")
91+
-o, --output string output format: one of json (default "pretty")
9292
-h, --help help for delete
9393
```
9494

@@ -170,57 +170,6 @@ Flags:
170170
-h, --help help for export
171171
```
172172

173-
## cluster-gcp up
174-
175-
```text
176-
spin up a cluster on gcp
177-
178-
Usage:
179-
cortex cluster-gcp up [CLUSTER_CONFIG_FILE] [flags]
180-
181-
Flags:
182-
-e, --configure-env string name of environment to configure (default "gcp")
183-
-y, --yes skip prompts
184-
-h, --help help for up
185-
```
186-
187-
## cluster-gcp info
188-
189-
```text
190-
get information about a cluster
191-
192-
Usage:
193-
cortex cluster-gcp info [flags]
194-
195-
Flags:
196-
-c, --config string path to a cluster configuration file
197-
-n, --name string name of the cluster
198-
-p, --project string gcp project id
199-
-z, --zone string gcp zone of the cluster
200-
-e, --configure-env string name of environment to configure
201-
-d, --debug save the current cluster state to a file
202-
-y, --yes skip prompts
203-
-h, --help help for info
204-
```
205-
206-
## cluster-gcp down
207-
208-
```text
209-
spin down a cluster
210-
211-
Usage:
212-
cortex cluster-gcp down [flags]
213-
214-
Flags:
215-
-c, --config string path to a cluster configuration file
216-
-n, --name string name of the cluster
217-
-p, --project string gcp project id
218-
-z, --zone string gcp zone of the cluster
219-
-y, --yes skip prompts
220-
--keep-volumes keep cortex provisioned persistent volumes
221-
-h, --help help for down
222-
```
223-
224173
## env configure
225174

226175
```text
@@ -243,7 +192,7 @@ Usage:
243192
cortex env list [flags]
244193
245194
Flags:
246-
-o, --output string output format: one of pretty|json (default "pretty")
195+
-o, --output string output format: one of json (default "pretty")
247196
-h, --help help for list
248197
```
249198

docs/clients/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ By default, the Cortex CLI is installed at `/usr/local/bin/cortex`. To install t
3333

3434
## Changing the CLI/client configuration directory
3535

36-
By default, the Cortex CLI/client creates a directory at `~/.cortex/` and uses it to store environment configuration. To use a different directory, export the `CORTEX_CLI_CONFIG_DIR` environment variable before running any `cortex` commands.
36+
By default, the CLI/client creates a directory at `~/.cortex/` and uses it to store environment configuration. To use a different directory, export the `CORTEX_CLI_CONFIG_DIR` environment variable before running any `cortex` commands.

docs/clients/python.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Python API
1+
# Python client
22

33
* [cortex](#cortex)
44
* [client](#client)
@@ -25,8 +25,7 @@
2525
client(env: str = None) -> Client
2626
```
2727

28-
Initialize a client based on the specified environment.
29-
If no environment name is passed, it will attempt using the default environment.
28+
Initialize a client based on the specified environment. If no environment is specified, it will attempt to use the default environment.
3029

3130
**Arguments**:
3231

@@ -43,17 +42,17 @@ If no environment name is passed, it will attempt using the default environment.
4342
new_client(name: str, operator_endpoint: str) -> Client
4443
```
4544

46-
Create a new environment to connect to an existing Cortex Cluster, and initialize a client to deploy and manage APIs on that cluster.
45+
Create a new environment to connect to an existing cluster, and initialize a client to deploy and manage APIs on that cluster.
4746

4847
**Arguments**:
4948

5049
- `name` - Name of the environment to create.
51-
- `operator_endpoint` - The endpoint for the operator of your Cortex Cluster. You can get this endpoint by running the CLI command `cortex cluster info` for an AWS provider or `cortex cluster-gcp info` for a GCP provider.
50+
- `operator_endpoint` - The endpoint for the operator of your Cortex cluster. You can get this endpoint by running the CLI command `cortex cluster info`.
5251

5352

5453
**Returns**:
5554

56-
Cortex client that can be used to deploy and manage APIs on a Cortex Cluster.
55+
Cortex client that can be used to deploy and manage APIs on a cluster.
5756

5857
## env\_list
5958

docs/clusters/aws/kubectl.md renamed to docs/clusters/advanced/kubectl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Setting up kubectl
1+
# Setting up `kubectl`
22

3-
## Install kubectl
3+
## Install `kubectl`
44

55
Follow these [instructions](https://kubernetes.io/docs/tasks/tools/install-kubectl).
66

@@ -16,13 +16,13 @@ aws --version # should be >= 1.16
1616
aws configure
1717
```
1818

19-
## Update kubeconfig
19+
## Update `kubeconfig`
2020

2121
```bash
2222
aws eks update-kubeconfig --name=<cluster_name> --region=<region>
2323
```
2424

25-
## Test kubectl
25+
## Test `kubectl`
2626

2727
```bash
2828
kubectl get pods

docs/clusters/registry.md renamed to docs/clusters/advanced/registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Private Docker registry
22

3-
## Install and configure kubectl
3+
## Configuring `kubectl`
44

5-
Follow the instructions for [AWS](aws/kubectl.md) or [GCP](gcp/kubectl.md).
5+
Follow the instructions [here](kubectl.md).
66

77
## Setting credentials
88

docs/clusters/aws/multi-instance-type.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

docs/clusters/aws/security.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/clusters/gcp/credentials.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)