This message was deleted.
# ask-for-help
s
This message was deleted.
🦄 1
🏁 1
x
Which
yatai-deployment
version do you have installed? You need to upgrade to the latest version of 1.0.x or migrate to the latest version of 1.1.x
b
Yeah it's 1.0
Oh I think I might know the problem
Copy code
(base) benjamintan@DK-helbrecht:~/workspace/ktp-ocr$ k exec -it    ktp-ocr-f76fbcd66-2h5r5 -n yatai /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.

bentoml@ktp-ocr-f76fbcd66-2h5r5:~/bento$ python
bash: python: command not found

bentoml@ktp-ocr-f76fbcd66-2h5r5:~/bento$ python3
Python 3.8.10 (default, Nov 14 2022, 12:59:47) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
The pod:
Copy code
Liveness:   exec [python -c "from urllib.request import urlopen; urlopen('<http://localhost:3000/healthz>'); urlopen('<http://ktp-ocr-runner-87a4730309ca831114210fe233df7f25:3000/healthz>'); urlopen('<http://ktp-ocr-runner-2cd21716280966093844d0cec55636f8:3000/healthz>'); urlopen('<http://ktp-ocr-runner-ad9a708951d4aa96c58504d908f9376f:3000/healthz>')"] delay=5s timeout=5s period=10s #success=1 #failure=6
SooOooOoo let me try to add a simple alias and see if that works
Would it be better then to change the liveness and readiness probe commands to use
python3
instead of
python
?
x
This is an issue that was fixed a long time ago, your yatai-deployment should be greater than or equal to this version https://github.com/bentoml/yatai-deployment/releases/tag/v1.0.1
b
Oh mines' 1.0.0 I think