Closed playtowork closed 5 years ago
Turns out I was doing two things wrong. First, I saw this:
kubeless get-server-config
INFO[0000] Current Server Config:
INFO[0000] Supported Runtimes are: ballerina0.981.0, dotnetcore2.0, dotnetcore2.1, go1.10, java1.8, nodejs6, nodejs8, php7.2, python2.7, python3.4, python3.6, python3.7, ruby2.3, ruby2.4, ruby2.5, jvm1.8, nodejs_distroless8, nodejsCE8
So "nodejs8.10" was not even an option. After I fixed that (using "nodejs8" instead), my other problem was the namespace in my serverless.yml file. I had a couple environments setup, and the other had a different namespace than this one. So the function was running for the other namespace as well. serverless deploy was deploying to the other namespace, but I was testing out the function with this namespace.
I want the runtime of my code to be NodeJs8.10. I ran the following steps:
But then, I get this error:
So then, I changed back the runtime to "nodejs6" in serverless.yml and tried serverless deploy again. This time, it successfully deployed. Now, I try changing the runtime back from "nodejs6" to "nodejs8.10" and again serverless deploy. I see no error in the deploy, but the pod is also not restarted.
Can you please tell me the proper way to run the code with runtime NodeJs 8.10?