Leverage the power of Dapr to build microservices application
- Kubernetes, it's ok to use Kubernetes on Docker for Win/Mac or Minikube for development environment. Currently I've just tested on Docker for Win/Mac environment (with Kubernetes enabled). Minikube hasn't been tested yet!
- Helm 3.0, no more Tiller. But please add the repo before we can install:
- Dapr CLI, prefer latest version (e.g. 0.3.0)
First, initialize Dapr on Kubernetes so that it can inject sidecars to our applications:
$ dapr init --kubernetes
Next, clone the source code & install the SimplAds app via Helm:
$ git clone https://github.com/trumhemcut/dapr-microservices.git
$ cd dapr-microservices
$ helm dep up ./helm-chart
$ helm install simplads ./helm-chart
Since the SimplAds uses Traefik as its main ingress, and using hostnames as the main endpoints. Please add those following hostnames to your host files:
If you're using Mac, add the line below to this file /etc/hosts. If you're using Windows, add the line below to this file C:\Windows\System32\drivers\hosts
127.0.0.1 traefik.dapr.fun dashboard.dapr.fun web.dapr.fun zipkin.dapr.fun
After finishing all above steps (it may takes several minutes), you can browse following Urls:
- Web App: https://web.dapr.fun
- Distrubuted tracing: https://zipkin.dapr.fun
- Traefik Ingress: https://traefik.dapr.fun
- Dapr Dashboard: https://dashboard.dapr.fun
- Dapr API endpoint: https://web.dapr.fun/dapr
TODO