Skip to content

barbarosalp/playground-vertx-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

A simple vertx api along with the helm packages. Follow the steps below to build and deploy it.

Benchmark results.

Prerequisites

Install home brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install hey for benchmarking

brew install hey

Kubernetes setup

Install kubectl

brew install kubectl

Install minikube

brew install minikube

Install helm

brew install helm

Start the k8s cluster

minikube start --memory 8192 --cpus 6 --vm-driver=virtualbox

Enable metrics-server

minikube addons enable metrics-server

Add host entry for the minikube cluster

sudo -- sh -c "echo \\$(minikube ip) localghost >> /etc/hosts"

Local helm repository setup

Install Helm Local repository web server

helm plugin install https://github.com/jdolitsky/helm-servecm

Start the local repo server

helm servecm --port=8879 --context-path=/charts --storage="local" --storage-local-rootdir="${HOME}/.helm/localrepo"

Add stable, incubator and @local repos.

helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
helm repo add @local http://127.0.0.1:8879/charts

Build, Deploy and Benchmark

From the root of the project:

  • Deploy
./helm/deploy.sh
  • Benchmark
./helm/benchmark.sh > ./helm/benchmark-result.txt

About

A simple vertx-api with a local kubernetes deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published