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.
Field |
Type |
Description |
---|---|---|
|
|
The version of the schema. Current version is |
|
|
The type of the resource. |
|
|
The metadata of the resource. Refer to the Kubernetes API documentation for the fields of the |
|
|
The tag of bento. required |
|
|
The url to download the bento tar file. If not specified, yatai-image-builder will fetch this information from yatai. optional |
|
|
The runners information. If not specified, yatai-image-builder will fetch this information from yatai. optional |
|
|
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