Skip to content on Kub8s

This tutorial explains how to deploy a kubernetes cluster and run on it.

More detailed information is available here.

Deploy the Kubernetes cluster

$ openstack coe cluster create myfissionio --keypair mykey \
    --cluster-template kubernetes-1.15.3-2 --node-count 2

$ openstack coe cluster list
| uuid | name          | node_count | master_count | status             |
| .... | myfissionio   | 2          | 1            | CREATE_COMPLETE    |


Choose one of the cluster nodes for reference later (one with scheduling enabled):

kubectl get node
NAME            STATUS                     AGE   Ready                      5d    Ready,SchedulingDisabled   5d    Ready                      5d

Deploy using their manifests:

kubectl create -f
kubectl create -f

Fetch the client and prepare your environment:

curl > fission && chmod +x fission

And that's it. Below is an example of how to setup a nodejs based environment and script:

./fission env create --name nodejs --image fission/node-env
echo 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }' > hello.js
./fission function create --name hello --env nodejs --code hello.js
./fission route create --method GET --url /hello --function hello

And to access it we would: