<p>I am trying to deploy a kubeless function using serverless. I created a kubernetes cluster using minikube and I am trying to follow this <a href="https://medium.com/bitnami-perspectives/deploying-a-kubeless-function-using-serverless-templates-2d03f49b70e2" rel="nofollow noreferrer">link</a> following which </p>

<ol>
<li>I installed serverless</li>
<li>created a template kubeless-nodejs</li>
<li>installed plugins with <code>npm install</code></li>
<li>and tried to deploy using <code>serverless deploy -v</code></li>
</ol>

<p>but I am getting an error</p>

<pre><code>/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)
</code></pre>

<p>Please point me in the right direction</p>

hushed_voice
<p>I found the issue. I had to deploy kubeless to the Kubernetes cluster
I had to do this for that:</p>

<pre><code>$ 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
</code></pre>

<p>as given here <a href="https://kubeless.io/docs/quick-start/" rel="nofollow noreferrer">link</a></p>
