Please follow instructions to install Minikube.
minikube start -p shopping-cluster
Please wait patiently until you see messages as follows:
😄 [shopping-cluster] minikube v1.4.0 on Darwin 10.14.5
🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🐳 Preparing Kubernetes v1.16.0 on Docker 18.09.9 ...
🚜 Pulling images ...
🚀 Launching Kubernetes ...
⌛ Waiting for: apiserver proxy etcd scheduler controller dns
🏄 Done! kubectl is now configured to use "shopping-cluster"
eval $(minikube -p shopping-cluster docker-env)
npm run docker:build
kubectl config use-context shopping-cluster
https://helm.sh/docs/using_helm/
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
Before we rebuild docker images, consider to bump the project to the next version:
npm run docker:version
To specify the exact version:
npm run docker:version -- <version>
Run the the following command to build docker images:
npm run docker:build
helm dependency build kubernetes/shopping-app
helm install --name shopping-app --debug kubernetes/shopping-app
minikube dashboard -p shopping-cluster
minikube service shopping-app -p shopping-cluster