Skip to content

sholua/k8s-react-express-mongo-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi container application

Make sure that minikube, kubectl, VirtualBox and skaffold are installed on your computer

Development flow

Run app in Kubernetes cluster with minikube:

  minikube start
  minikube addons enable ingress
  kubectl create secret generic mongo-username --from-literal MONGO_USERNAME=shol
  kubectl create secret generic mongo-password --from-literal MONGO_PASSWORD=12345678
  kubectl apply -f k8s/database-persistent-volume.yml
  skaffold dev --port-forward
  minikube ip

Restore access to an existing pv:

kubectl patch pv database-persistent-volume -p '{"spec":{"claimRef": null}}'

For production buid run:

skaffold run -p prod

Request in development

frontend minikube_ip backend minikube_ip/api/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages