A simple dotnetcore api along with the helm packages. Follow the steps below to build and deploy it.
Benchmark results.
Install home brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install hey
for benchmarking
brew install hey
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"
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
From the root of the project:
- Deploy
./helm/deploy.sh
- Benchmark
./helm/benchmark.sh > ./helm/benchmark-result.txt