Operationalize a Machine Learning Microservice API Project FAQ — Udacity Cloud DevOps
- OSError: [Errno 8] Exec format error: ‘/app/app.py’
Please try the following solution mentiones in this github thread:
https://github.com/pallets/werkzeug/issues/1482
Did the same tutorial and found the same issue. This fixed it for me.
I added the following shebang to the top of my app.py script
#!/usr/local/bin/python3
Which then caused permission issues. I then added the following to my Dockerfile before the CMD
RUN chmod 644 app.py
2. AttributeError: ‘LeastSquaresError’ object has no attribute ‘get_init_raw_predictions’
Please try downgrading the version of sklearn to 0.20.2 gets rid of this error.
http://www.jtdz-solenoids.com/github_/scikit-learn/scikit-learn/issues/14076
3. Unable to parse YAML. could not find expected ‘:’
The problem is that the file provided by Udacity has a wrong indentation. To see how a correct YAML file should look like in CicleCI, please look at this https://circleci.com/blog/setting-up-continuous-integration-with-github/
This is the corrected file:
To validate that you YAML is correct use this tool:
4. I have Windows 10 and I can’t install docker
Please refer to the solutions in this post in the Knowledge:
Other solutions:
- Use windows 10 enterprise or pro version
- Use linux or mac
- Upgrade to the pro version of windows 10 https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
- Use docker toolbox with virtualbox https://forums.docker.com/t/installation-say-error-need-windows-10-pro/11679/6
5. Hey I am not sure how to obtain the text log files for the kubernetes output log stuff.
- To start a local cluster with minikube
- Deploy the application in kubernetes
- Make a prediction
- Run the following command to get the name of your Pod:
kubectl get pod
5. Copy the name of the Pod and run the command to see the logs of the Pod:
kubectl logs Name_Of_Pod
6. how would i run a docker image using kubernetes?
You need to use minikube
This tutorial gives you step by step instructions
7. How to deploy an app in kubernetes?