我正在尝试使用无服务器部署无kube功能。我使用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