Please follow instructions to install Minikube.
minikube start -p shopping-clusterPlease 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:buildkubectl config use-context shopping-clusterhttps://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 tillerBefore we rebuild docker images, consider to bump the project to the next version:
npm run docker:versionTo specify the exact version:
npm run docker:version -- <version>Run the the following command to build docker images:
npm run docker:buildhelm dependency build kubernetes/shopping-app
helm install --name shopping-app --debug kubernetes/shopping-appminikube dashboard -p shopping-clusterminikube service shopping-app -p shopping-cluster