BentoRequest CRD#

BentoRequest is a Kubernetes CRD defined by yatai-image-builder component.

It is primarily used to describe bento’s OCI image build request and to describe how to generate a Bento CR.

Each BentoRequest CR will generate a Bento CR with the same name after the OCI image is built.

Specification#

Field

Type

Description

apiVersion

string

The version of the schema. Current version is resources.yatai.ai/v1alpha1

kind

string

The type of the resource. BentoRequest

metadata

object

The metadata of the resource. Refer to the Kubernetes API documentation for the fields of the metadata field

spec.bentoTag

string

The tag of bento. required

spec.downloadUrl

string

The url to download the bento tar file. If not specified, yatai-image-builder will fetch this information from yatai. optional

spec.runners

array

The runners information. If not specified, yatai-image-builder will fetch this information from yatai. optional

spec.runners[].name

string

The name of the runner. required

Example of a BentoRequest#

apiVersion: resources.yatai.ai/v1alpha1
kind: BentoRequest
metadata:
  name: my-bento
  namespace: my-namespace
spec:
  bentoTag: iris:1
  downloadUrl: s3://my-bucket/bentos/iris.tar.gz
  runners:
  - name: runner1
    runnableType: SklearnRunnable
    modelTags:
    - iris:1
  - name: runner2