All Projects → fission → serverless-fission

fission / serverless-fission

Licence: Apache-2.0 license
Use Fission through Serverless Framework https://serverless.com

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to serverless-fission

Fission
Fast and Simple Serverless Functions for Kubernetes
Stars: ✭ 6,646 (+34878.95%)
Mutual labels:  faas, serverless-functions, fission
Awesome Serverless
DEPRECATED: Curated list of resources related to serverless computing and serverless architectures.
Stars: ✭ 2,049 (+10684.21%)
Mutual labels:  serverless-functions, serverless-framework, serverless-plugin
serverless-aws-static-file-handler
Easily serve static files with the Serverless Framework on AWS Lambda.
Stars: ✭ 43 (+126.32%)
Mutual labels:  serverless-functions, serverless-framework, serverless-plugin
Serverless Chrome
🌐 Run headless Chrome/Chromium on AWS Lambda
Stars: ✭ 2,625 (+13715.79%)
Mutual labels:  serverless-functions, serverless-framework, serverless-plugin
Serverless Openwhisk
Adds Apache OpenWhisk support to the Serverless Framework!
Stars: ✭ 131 (+589.47%)
Mutual labels:  serverless-functions, serverless-framework, serverless-plugin
tencent-tensorflow-scf
A template project for serverless functions for Tensorflow inference on Tencent Cloud.
Stars: ✭ 38 (+100%)
Mutual labels:  faas, serverless-functions, serverless-framework
Openwhisk Runtime Php
Apache OpenWhisk Runtime PHP supports Apache OpenWhisk functions written in PHP
Stars: ✭ 26 (+36.84%)
Mutual labels:  faas, serverless-functions
Openwhisk Runtime Nodejs
Apache OpenWhisk Runtime NodeJS supports Apache OpenWhisk functions written in JavaScript for NodeJS
Stars: ✭ 43 (+126.32%)
Mutual labels:  faas, serverless-functions
serverless-modular
⚡️ serverless plugin for microservice code management and deployment.
Stars: ✭ 19 (+0%)
Mutual labels:  serverless-framework, serverless-plugin
openwhisk-catalog
Curated catalog of Apache OpenWhisk packages to interface with event producers and consumers
Stars: ✭ 30 (+57.89%)
Mutual labels:  faas, serverless-functions
Functional Typescript
TypeScript standard for rock solid serverless functions.
Stars: ✭ 600 (+3057.89%)
Mutual labels:  faas, serverless-functions
Openwhisk Cli
Apache OpenWhisk Command Line Interface (CLI)
Stars: ✭ 73 (+284.21%)
Mutual labels:  faas, serverless-functions
Components
The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
Stars: ✭ 2,259 (+11789.47%)
Mutual labels:  faas, serverless-framework
Riff
riff is for functions
Stars: ✭ 801 (+4115.79%)
Mutual labels:  faas, serverless-functions
Openwhisk Apigateway
Apache OpenWhisk API Gateway service for exposing actions as REST interfaces.
Stars: ✭ 56 (+194.74%)
Mutual labels:  faas, serverless-functions
Openwhisk
Apache OpenWhisk is an open source serverless cloud platform
Stars: ✭ 5,499 (+28842.11%)
Mutual labels:  faas, serverless-functions
Openwhisk Devtools
Development tools for building and deploying Apache OpenWhisk
Stars: ✭ 141 (+642.11%)
Mutual labels:  faas, serverless-functions
Jazz
Platform to develop and manage serverless applications at an enterprise scale!
Stars: ✭ 254 (+1236.84%)
Mutual labels:  faas, serverless-framework
Openwhisk Deploy Kube
The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
Stars: ✭ 231 (+1115.79%)
Mutual labels:  faas, serverless-functions
openwhisk-package-kafka
Apache OpenWhisk package for communicating with Kafka or Message Hub
Stars: ✭ 35 (+84.21%)
Mutual labels:  faas, serverless-functions

Fission Serverless Plugin

Note: This plugin is out of maintainance, may not work out of box. Happy to receive contributions.

This plugin brings Fission support within the Serverless Framework.

Pre requisites

Make sure you have a fission running and fission-cli is installed. You can find the installation intructions here.

You can install serverless with npm,

$ npm install serverless -g

Try out the example

Clone repo and check the example function

$ git clone https://github.com/fission/serverless-fission/
$ cd examples/python
$ cat serverless.yml
service: hello

provider:
  name: fission
  runtime: python2.7

plugins:
  - serverless-fission

functions:
  hello:
    description: 'Hello function'
    handler: handler.hello

Download dependencies

$ npm install ../../

Create an Environment.

$ serverless create --template node-1 --img node --nmspace default
Fission environment node-1 created.  

Deploy function.

$ serverless deploy --template hello --env node-1 --code hello.js
Fission function hello created

The function will be deployed to Kubernetes via fission.

$ fission function list
NAME  UID                                  ENV    EXECUTORTYPE MINSCALE MAXSCALE MINCPU MAXCPU MINMEMORY MAXMEMORY TARGETCPU             
hello 2b0f9c51-7459-11e8-a089-080027cdd0a9 python poolmgr      0        1        0      0      0         0         80         
$ kubectl get pods --all-namespaces
NAMESPACE          NAME                                                              READY     STATUS        RESTARTS   AGE   
fission-function   python-2b073331-7459-11e8-a089-080027cdd0a9-5h3iitxq-66b4c56lrb   2/2       Running       0          15s             
fission-function   python-2b073331-7459-11e8-a089-080027cdd0a9-5h3iitxq-66b4c5vzpv   2/2       Running       0          15s             
fission-function   python-2b073331-7459-11e8-a089-080027cdd0a9-5h3iitxq-66b4cn8psk   2/2       Running       0          15s  

Now you will be able to call the function:

$ serverless invoke --router 127.0.0.1 --port 8443 --fnname hello
hello world

If you are using minikube, you can call the function through HTTP and the Node Port in which function is running:

$ curl  http://$(minikube ip):31314/hello
hello world

If you want to remove the deployed function.

$ serverless remove  --fn hello --nmspace default
Fission function hello deleted.

If you wanted to rollback one of the created environments.

$ serverless rollback --env node-1 --nmspace
Fission environment 'python' deleted

Demo: asciicast

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].