我正在尝试使用无服务器部署无库函数。我使用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)
请指出正确的方向
最佳答案
我发现了问题。我不得不将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