Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.5 KB

File metadata and controls

36 lines (26 loc) · 1.5 KB

Sample Kubernetes setup to run node.js and mongodb website

Entry point how to run mongo & node.js app in kubernetes

https://github.com/kubernetes/examples/blob/master/staging/nodesjs-mongodb/README.md

minikube installation on mac

https://kubernetes.io/docs/getting-started-guides/minikube/

Notes

troubleshooting local docker registry to work with minikube

https://gist.github.com/kevin-smets/b91a34cea662d0c523968472a81788f7

Steps:

  1. install docker (don't need to run as minikube runs it's own docker daemon)
  2. install minikube, start minikube start
  3. setup local registry so apps docker images created on localhost and pushed to localhost:5000 are accessible from minikube - https://gist.github.com/kevin-smets/b91a34cea662d0c523968472a81788f7
  4. run kubectl create -f {filename} for mongo-service, mongo-controller, web-service, web-controller
  5. run minikube service web --url to get url - open in the browser