Go to file
2019-05-02 13:32:48 +02:00
benchmark Update benchmark.sh 2019-05-02 13:32:48 +02:00
deploy Update kubernetes_install.sh 2019-04-24 13:30:12 +02:00
functions Update isprime.js 2019-04-26 15:38:09 +02:00
kafka-testing Update log 2019-04-10 00:52:14 +02:00
update Update update.sh 2019-04-24 13:32:32 +02:00
withdraw Update node_reset.sh 2019-04-24 13:29:03 +02:00
.gitignore Update .gitignore 2019-04-03 12:15:17 +02:00
cluster-deploy Update cluster-deploy 2019-04-24 13:26:06 +02:00
cluster-update Update cluster-update 2019-04-17 16:00:47 +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
delete_evicted.sh Update delete_evicted.sh 2019-04-30 12:30:22 +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-17 16:11:27 +02:00
worker.list.example initial commit 2019-03-05 18:33:23 +01:00

Kubernetes Cluster Deployer and Withdrawer


Available CNI plugins

  • 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!