Getting started with OpenFaaS on Minikube

Liz Rice
Liz Rice
Nov 18, 2017 · 5 min read

Getting set up

$ minikube service list
|-------------|----------------------|-----------------------------|
| NAMESPACE | NAME | URL |
|-------------|----------------------|-----------------------------|
| default | alertmanager | No node port |
| default | alertmanager-external| http://192.168.99.100:31113 |
| default | faas-netesd | No node port |
| default | faas-netesd-external | http://192.168.99.100:31111 |
| default | gateway | No node port |
| default | gateway-external | http://192.168.99.100:31112 |
| default | kubernetes | No node port |
| default | prometheus | No node port |
| default | prometheus-external | http://192.168.99.100:31119 |
| kube-system | kube-dns | No node port |
| kube-system | kubernetes-dashboard | http://192.168.99.100:30000 |
| kube-system | tiller-deploy | No node port |
|-------------|----------------------|-----------------------------|
$ faas-cli list — gateway http://192.168.99.100:31112/
Function Invocations Replicas

Adding a function

$ kubectl get pods
NAME READY STATUS RESTARTS AGE
alertmanager-6dbdcddfc4-vdpz7 1/1 Running 0 1h
faas-netesd-5bc679d756-hj4s8 1/1 Running 0 1h
gateway-965d6676d-hlc66 1/1 Running 0 1h
lizfaas-598848dd4-lw8hw 1/1 Running 0 1m
prometheus-64f9844488-s9fmj 1/1 Running 0 1h

Invoking the function

Aqua Security has two public repos on Docker Hub at the moment

FaaS CLI

$ faas-cli list --gateway http://192.168.99.100:31112/
Function Invocations Replicas
lizfaas 2 1
$ faas-cli invoke lizfaas --gateway http://192.168.99.100:31112/
Reading from STDIN — hit (Control + D) to stop.
aquasec
The organisation or user aquasec has 2 repositories on the Docker hub.

But is it really a “function”?

Executables-as-a-Service

Premature optimization?

Liz Rice

Written by

Liz Rice

Containers / software engineering / cycling / music / @AquaSecTeam

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade