Search…
Configuration
1
- name: <string> # name of the API (required)
2
kind: TaskAPI # must be "TaskAPI" for task APIs (required)
3
pod: # pod configuration (required)
4
containers: # configurations for the containers to run (at least one constainer must be provided)
5
- name: <string> # name of the container (required)
6
image: <string> # docker image to use for the container (required)
7
command: <list[string]> # entrypoint (not executed within a shell); env vars can be used with e.g. $(CORTEX_PORT) (required)
8
args: <list[string]> # arguments to the entrypoint; env vars can be used with e.g. $(CORTEX_PORT) (default: no args)
9
env: <map[string:string]> # dictionary of environment variables to set in the container (optional)
10
compute: # compute resource requests (default: see below)
11
cpu: <string|int|float> # CPU request for the container; one unit of CPU corresponds to one virtual CPU; fractional requests are allowed, and can be specified as a floating point number or via the "m" suffix (default: 200m)
12
gpu: <int> # GPU request for the container; one unit of GPU corresponds to one virtual GPU (default: 0)
13
inf: <int> # Inferentia request for the container; one unit of inf corresponds to one virtual Inferentia chip (default: 0)
14
mem: <string> # memory request for the container; one unit of memory is one byte and can be expressed as an integer or by using one of these suffixes: K, M, G, T (or their power-of two counterparts: Ki, Mi, Gi, Ti) (default: Null)
15
shm: <string> # size of shared memory (/dev/shm) for sharing data between multiple processes, e.g. 64Mi or 1Gi (default: Null)
16
liveness_probe: # periodic probe of container liveness; container will be restarted if the probe fails (optional)
17
http_get: # specifies an http endpoint which must respond with status code 200 (only one of http_get, tcp_socket, and exec may be specified)
18
port: <int|string> # the port to access on the container (required)
19
path: <string> # the path to access on the HTTP server (default: /)
20
tcp_socket: # specifies a port which must be ready to receive traffic (only one of http_get, tcp_socket, and exec may be specified)
21
port: <int|string> # the port to access on the container (required)
22
exec: # specifies a command to run which must exit with code 0 (only one of http_get, tcp_socket, and exec may be specified)
23
command: <list[string]> # the command to execute inside the container, which is exec'd (not run inside a shell); the working directory is root ('/') in the container's filesystem (required)
24
initial_delay_seconds: <int> # number of seconds after the container has started before the probe is initiated (default: 0)
25
timeout_seconds: <int> # number of seconds until the probe times out (default: 1)
26
period_seconds: <int> # how often (in seconds) to perform the probe (default: 10)
27
success_threshold: <int> # minimum consecutive successes for the probe to be considered successful after having failed (default: 1)
28
failure_threshold: <int> # minimum consecutive failures for the probe to be considered failed after having succeeded (default: 3)
29
node_groups: <list[string]> # a list of node groups on which this API can run (default: all node groups are eligible)
30
networking: # networking configuration (default: see below)
31
endpoint: <string> # endpoint for the API (default: <api_name>)
Copied!
Last modified 2mo ago
Copy link