Go to file
2019-04-10 00:52:14 +02:00
benchmark Update benchmark.sh 2019-04-03 13:02:22 +02:00
deploy Create kubeless_kafka_setup.sh 2019-04-03 23:45:54 +02:00
functions Create deploy_function_kafka.sh 2019-04-03 23:56:34 +02:00
kafka-testing Update log 2019-04-10 00:52:14 +02:00
update bunch of changes 2019-04-02 23:45:31 +02:00
withdraw Update node_reset.sh 2019-03-16 16:47:58 +01:00
.gitignore Update .gitignore 2019-04-03 12:15:17 +02:00
cluster-deploy Update cluster-deploy 2019-04-03 12:09:39 +02:00
cluster-update bunch of changes 2019-04-02 23:45:31 +02:00
cluster-withdraw Update cluster-withdraw 2019-03-16 16:47:28 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2019-04-03 00:59:53 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2019-04-03 00:59:08 +02:00
LICENSE Create LICENSE 2019-03-05 18:37:29 +01:00
package-latest Update package-latest 2019-04-03 11:59:34 +02:00
README.md Update README.md 2019-04-03 12:14:41 +02:00
worker.list.example initial commit 2019-03-05 18:33:23 +01:00

Kubernetes Cluster Deployer and Withdrawer


Available CNI plugins (as for now)

  • Calico
  • Cilium
  • Flannel
  • WeawNet

User's Manual

Preparations

The commands must be run as root on the (future) master node. The SSH-key of the master node must be uploaded on the worker node for root, so it can run seamlessly.

Create a worker.list file and add the hostname or the IP address of the worker nodes in it line-by-line as you can see in the example file.

Create a docker.version file containing the desired version of the docker package you would like to deploy, or alternatively run the package-latest command, which will create this file for you.

Create a kubernetes.version file containing the desired version of the kubernetes package you would like to deploy, or alternatively run the ./package-latest command, which will create this file for you.

Deploying Kubernetes Cluster

To install the cluster run the ./cluster-deploy <CNI> command. A Kubernetes CNI plugin name must be given as an argument. If you give the word help as an argument, you will get the available CNI plugins.

Withdraw Kubernetes Cluster

To undo the cluster installation run the ./cluster-withdraw command and it will clean up the configurations on all nodes including the master as well. Command will purge all Kubernetes setups from nodes enlisted in the worker.list file!

Deploy function to kubeless

To deploy a function to kubeless run the ./function/deploy_function.sh <RUNTIME> <FILENAME> <FUNCTION NAME> <HANDLER NAME> command with the appropriate parameters. You need to have the function available in a file next to the script.

Benchmark the cluster

Benchmarking is pretty turnkey. Edit the appropriate variables in ./benchmark/benchmark.sh file, then run it!