Skip to content

Sample kubernetes setup to run node.js website with mongodb database

Notifications You must be signed in to change notification settings

unchainet/kube-mongo-node

Repository files navigation

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

About

Sample kubernetes setup to run node.js website with mongodb database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published