-
Notifications
You must be signed in to change notification settings - Fork 69
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
Image builder failed due to MountVolume.SetUp failed for volume "yatai-regcred" and "kube-api-access" #438
Comments
Thanks for the report! I found a related issue from the official k8s repo, and your k8s version is within the range of versions for this issue |
Thanks @yetone . I'm not sure yet if our k8s version is indeed the issue since I do not have authorities to upgrade our k8s cluster, perhaps I will try it later as our last resort. Anyway after further debugging I've found the following error in the
However logs from the yatai pod didn't really show anything related to the error. There were some warnings but I assume they are from some periodical checks. I also tried to call the API from another pod manually but still it didn't trigger any log messages.
|
Can you check the output of this command? cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
name: test
namespace: yatai
spec:
containers:
- command:
- sh
- -c
- 'curl -H "X-YATAI-API-TOKEN: yatai-image-builder:default:\$(YATAI_API_TOKEN)" "http://yatai.yatai-system.svc.cluster.local/api/v1/bento_repositories/test-onnx/bentos/0.0.1/download"'
envFrom:
- secretRef:
name: yatai-api-token
image: curlimages/curl
name: bento-downloader
EOF
sleep 5
kubectl -n yatai logs -f test |
Thank you. It turns out the minio endpoint was incorrect so it could not download the bento. I fixed the endpoint, re-pushed the bento and it works now. Not sure why the first push still succeeded even though the endpoint was wrong. Anyway thank you for your support! |
Hello,
I'm trying to deploy a model to our K8S cluster. I've followed the official installation guide and set up
yatai
,yatai-image-builder
andyatai-deployment
successfully.What I've achieved so far is to create a model and push the model to Yatai with
bentoml
. But now when trying to create a deployment (using Yatai UI), I've got stuck at the image builder step because the builder pod cannot be created.Logs from Yatai:
Pod status:
Describe pod:
I've confirmed that
kube-api-access-xdddb
andyatai-regcred
indeed exist so I am not sure why it says the objects were not registered.Kubernetes version:
1.22.8
.Could somebody please help? Thank you!
The text was updated successfully, but these errors were encountered: