Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy a "custom Bentoml image" using "yatai-deployment". #483

Open
tonylauCN opened this issue Jul 24, 2023 · 0 comments
Open

Deploy a "custom Bentoml image" using "yatai-deployment". #483

tonylauCN opened this issue Jul 24, 2023 · 0 comments

Comments

@tonylauCN
Copy link

tonylauCN commented Jul 24, 2023

"Yatai" is a great project, and my team started using it since version "1.0.0a7" and it's fine. However, recently, we updated the versions of Yatai components:

yatai 1.1.9
yatai-deployment 1.1.13
yatai-image-builder 1.1.8

After the update, we encountered issues with the deployment. Here are the specific details:

We use custom jobs to build Bentoml images (still using the Bentoml commands):

bentoml build ..
bentoml containerize ..
docker login ..
docker tag ..
docker push ..
bentoml yatai login ..
bentoml push ..

After these steps, we create a CRD file for deployment:

apiVersion: serving.yatai.ai/v2alpha1
kind: BentoDeployment
metadata:
  name: dep-bento-testirismtpl-gpu-6-1-76
  namespace: yatai
spec:
  bento: 1-tf-mnist-svc--v-1-2-3
  extraPodMetadata:
    labels:
      name: dep-bento-testirismtpl-gpu-6-1-76
      startTime: "20230724135548"
      expiredAt: "20230823135548"
  extraPodSpec:
    tolerations:
      - key: nvidia.com/gpu
        operator: Exists
        effect: NoSchedule
  ingress:
    enabled: false
...

However, we encountered the issue "Bento {name} not found" from yatai-deployment:
events Bento 1-tf-mnist-svc--v-1-2-3 not found {"type": "Normal", "object": {"kind":"BentoDeployment","namespace":"yatai","name":"dep-bento-testirismtpl-gpu-6-1-76","uid":"d2f09f5f-3167-42ba-b67f-cacd8d99b5d1","apiVersion":"serving.yatai.ai/v2alpha1","resourceVersion":"104943704"}, "reason": "GetBento"}

However, if we use "yatai-image-builder" for building and then deploy with the same CRD file, it works successfully.

Can we deploy using custom Docker image like we did in the previous version (1.0.0a7) without using yatai-image-builder?

@tonylauCN tonylauCN changed the title Deploy a "custom Bentoml image" using "yatai-deployment" instead of using "yatai-image-builder". Deploy a "custom Bentoml image" using "yatai-deployment". Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant