/kubeless-poc

POC for Kubeless on a local development Kuberentes

Primary LanguageJavaScript

kubeless-poc

An POC of how to run Kubeless in a raw local Kubernetes.

Usage

Design

Serverless

What ‘serverless’ really means is that, as a developer you don’t have to think about those servers. You just focus on code.

Requirements

This project was bootstrapped via:

$ npm install -g serverless
$ serverless create --template kubeless-nodejs --path my-project
$ cd my-project/ && npm install

Manifest Parameters

This serverless manifest lets user provide the following parameter:

K8S_NAMESPACE

$ kubectl create ns my-namespace
$ K8S_NAMESPACE=my-namespace sls deploy -v

Dependencies

lodash is used here for dependencies usage reference.

Examples

Local

$ sls offline start -v

Deploy

$ sls deploy -v

Invoke

$ sls invoke -f capitalize -d 'hello world' -l
Serverless: Calling function: capitalize...
--------------------------------------------------------------------
Hello world

Remove

$ sls remove