Skip to content

making/riff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sk8s: a FaaS for Kubernetes

Installation

You can install the system using a Helm chart or by manually building and deploying the components.

Manual install of Sk8s FaaS

Prerequisites

You need:

  • A running 1.7 Kubernetes cluster with at least 4GB of memory. These instructions assume minikube for now.

    minikube start --cpus=4 --memory=4096 --disk-size=64g
  • Git installed.

  • A Java 8 environment.

  • A working Go environment, with a clone of Eric Bottard’s customized fabric8io/kubernetes-model.

    cd $(go env GOPATH)   #defaults to ~/go
    git clone https://github.com/ericbottard/kubernetes-model src/github.com/fabric8io/kubernetes-model/
  • A clone of this repo.

git clone https://github.com/markfisher/sk8s.git

Build the kubernetes-model jar Enhanced with the Types for the CustomResources

./build-model

Setup the Kubernetes environment

Create Function and Topic Custom Resource Definitions:

kubectl apply -f config/types

Point your Docker environment to the Docker environment running in minikube:

eval $(minikube docker-env)

Build Sk8s FaaS

Build components and create Docker images:

./mvnw clean package && ./dockerize

Deploy Kafka/Zookeeper

kubectl apply -f config/kafka

Deploy Sk8s FaaS

kubectl apply -f config

Deploy Metrics (Grafana/Prometheus) and Tracing (Zipkin) Dashboards

kubectl apply -f config/prometheus
kubectl apply -f config/grafana
kubectl apply -f config/zipkin

See how to use the dashboards.

To tear it all down

./teardown

Try Some Samples

With the Sk8s FaaS running try some of the samples.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 76.0%
  • Shell 15.1%
  • Batchfile 6.6%
  • Python 1.7%
  • Other 0.6%