我正在尝试使用无服务器部署无库函数。我使用minikube创建了一个kubernetes集群,我尝试遵循此link,然后
npm install
安装的插件serverless deploy -v
但我遇到错误
/home/vin/serverless/kube/services/email/node_modules/serverless-kubeless/lib/config.js:56
return JSON.parse(this.configMag.data[key]);
^
TypeError: Cannot read property 'runtime-images' of undefined
at Config.get (/home/vin/serverless/kube/services/email/node_modules/serverless-kubeless/lib/config.js:56:44)
请指向正确的方向
答案 0 :(得分:1)
我发现了问题。我必须将kubeless部署到Kubernetes集群 为此,我必须这样做:
$ export RELEASE=$(curl -s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut -d '"' -f 4)
$ kubectl create ns kubeless
$ kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
此处link