This message was deleted.
# ask-for-help
s
This message was deleted.
👀 1
🦄 1
f
To install yatai and yatai-deployment on the cluster, I used the quick install commands. This is the output of the last commands in the cluster
For creating a cluster in yatai UI. I got the config by running:
kubectl config view
Ingress IPv4 address:
kubectl get svc -n ingress-nginx
default k8s namespace: yatai-deployment
This is the error I get when adding a deployment on the cluster
Update:
kubectl config view
hides some of the sensitive information required. I have copy/pasted the text directly from
$HOME/.kube/config
Now there’s a different error, would appreciate any help
b
what's your test cluster that you are deploying on?
f
It’s an azure kubernetes service cluster
b
Seems like there's something wrong with the certificates
how are you accessing yatai?
f
We have a bento cloud trial so we are using that link
b
did u set up an ingress + https?
f
I think yatai is installed on bento’s cloud. What we are trying to do is add our own cluster just for the deployments. Hope this helps
x
If your yatai-deployment and yatai are not in the same k8s cluster, you need to create the k8s namespace and k8s serviceaccount before installing yatai-deployment:
Copy code
kubectl create ns yatai-system
kubectl create sa yatai
Then follow the installation documentation to install yatai-deployment:
NOTE: You should set the cluster name when install the yatai-deployment helm chart:
--set yatai.clusterName=${YATAI_CLUSTER_NAME}
https://docs.bentoml.org/projects/yatai/en/latest/installation/yatai_deployment.html After installing yatai-deployment, use the tool to dump the kubeconfig for yatai serviceaccount:
Copy code
bash <(curl -s "<https://raw.githubusercontent.com/bentoml/Yatai/main/scripts/get-yatai-system-kubeconfig.sh>") /tmp/kubeconfig.yaml
Then use the kubeconfig to create a new cluster in yatai dashboard UI
NOTE: The cluster name must be the same as the cluster name specified in the yatai-deployment helm chart installation.
Then restart yatai-deployment:
Copy code
kubectl -n yatai-deployment rollout restart deploy/yatai-deployment
f
Thanks for your help. After following your instructions, I think I understand the general idea. Yes our yatai is on bentoML cloud (aws) and we want to add a yatai-deployment on our cluster (azure). For this command
--set yatai.clusterName=${YATAI_CLUSTER_NAME}
I copied the name from the settings of the default cluster from the UI. When I dump the config using that tool, the name of the cluster is not the same as the one (above) set in the helm chart though. Don’t know if this helps to know if I did things correctly or not but when I add a deployment now I get this error
x
You can only deploy your deployment to
yatai
namespace