Bento CRD#

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

It is primarily used to describe bento’s information. yatai-deployment to get bento information via Bento CR.

Bento CRs are often generated through the BentoRequest CR, but you can create a Bento CR manually, and yatai-deployment relies on the Bento CR to get the Bento information.

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. Bento

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.image

string

The OCI image URI of bento. required

spec.runners

array

The runners information. required

spec.runners[].name

string

The name of the runner. required

Example of a Bento#

apiVersion: resources.yatai.ai/v1alpha1
kind: Bento
metadata:
  name: my-bento
  namespace: my-namespace
spec:
  tag: iris:1
  image: my-registry.com/my-repository/iris:1
  runners:
  - name: runner1
    runnableType: SklearnRunnable
    modelTags:
    - iris:1
  - name: runner2