VESSL Serve is configured through a single YAML file.
Name | Type | Required | Description |
---|---|---|---|
name | string | Requried | Service name |
Name | Type | Required | Description |
---|---|---|---|
message | string | Requried | Description of the revision. |
Name | Type | Required | Description |
---|---|---|---|
image | string | Requried | Docker image url. |
Name | Type | Required | Description |
---|---|---|---|
cluster | string | Optional | The cluster to be used for the run. (default: VESSL-managed cluster) |
preset | string | Optional | The preset to be used for the run. |
spot | one of (empty, SpotOnly, SpotFirst, OnDemandOnly) | Optional | Whether to use spot instances for the run or not. |
Prefix | Type | Required | Description |
---|---|---|---|
git:// | string | Optional | Mount a git repository into your container. The repository will be cloned into the specified mount path when container starts. |
hf:// | string | Optional | Mount a huggingface repository into your container. The repository will be cloned into the specified mount path when container starts. |
vessl-dataset:// | string | Optional | Mount a dataset stored in VESSL. Replace organizationName with the name of your organization and datasetName with the name of the dataset. |
s3:// | string | Optional | Mount an AWS S3 bucket into your container. Replace bucketName with the name of your S3 bucket and path with the path to te file or folder you want to mount. |
gs:// | string | Optional | Mount an GCP GCS bucket into your container. Replace bucketName with the name of your GCS bucket and path with the path to te file or folder you want to mount. |
vessl-model:// | string | Optional | Mount a VESSL Model into your container. |
vessl-artifact:// | string | Optional | Mount a VESSL Artifact into your container. |
Prefix | Type | Required | Description |
---|---|---|---|
hf:// | string | Optional | Mount a huggingface repository into your container. The repository will be cloned into the specified mount path when container starts. |
hostpath:// | string | Optional | Mount a file or directory from the host node’s filesystem into your container. Replace path with the path to the file or folder you want to mount. |
nfs:// | string | Optional | Mount a Network File System(NFS) into your container. Replace ip with the IP address of your NFS server and path with the path to the file or folder you want to mount. |
cifs:// | string | Optional | Mount a Command Internet File System(CIFS) into your contianer. Replace ip with the IP address of your NFS server and path with the path to the file or folder you want to mount. |
gcs-fuse:// | string | Optional | Mount a GCS with FUSE csi driver. |
Name | Type | Required | Description |
---|---|---|---|
workdir | string | Optional | The working directory for the command. |
command | string | Required | The command to be run. |
Name | Type | Required | Description |
---|---|---|---|
env | map | Optional | Key-value pairs for environment variables in the run container. |
Name | Type | Required | Description |
---|---|---|---|
name | string | Required | The name for the opening port. |
type | string | Required | The protocol the port will use. |
port | int | Required | The number of the port. |
Name | Type | Required | Description |
---|---|---|---|
min | string | Required | Minimum number of Pods to autoscale. |
max | string | Required | Maximum number of Pods to autoscale. |
metric | int | Required | Determine what conditions you want to autoscale under. You can select cpu, gpu, memory, and custom |
target | int | Required | A metric threshold percentage. If the metric is above the target, then the Autoscaler automatically scale-out. |