Using NodeJS, Nginx, Docker, and Kubernetes you can create a highly available microservice environment. This repository contains a local demostration of how to integrate these technologies.
http://www.slideshare.net/BradWilliams86/thatconference-2016-highly-available-nodejs
-
Clone this repo
-
Install Minikube (a simple utility to run Kubernetes locally)
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ brew install docker-machine-driver-xhyve sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
-
Install kubectl (Kubernetes CLI)
curl -O https://storage.googleapis.com/kubernetes-release/release/v1.3.4/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
OR
brew install kubernetes-cli
-
Start Minikube
minikube start --vm-driver="xhyve"
-
Deploy apps to Kubernetes
kubectl apply -f kubernetes/