Open
Description
Expected Behavior
There are multiple issues with the tutorials:
- Running through the tutorials with the proper packages and programs installed should yield a successful run. However, there is an issue present when running tests in kubernetes that rely on a redis statestore (explained more below)
- The pub-sub tutorial requires dotnet to be installed but the README does not list it as required,
- The tutorials do not wait for dapr to fully initialize and continue on when a "HEALTHY" status of "False" is present on dapr
Actual Behavior
A failed run occurs when running any of the tutorials that require a redis statestore due to the fact that redis is not started when dapr is deployed to a kubernetes cluster.
Steps to Reproduce the Problem
Problem 1: Redis not being deployed in the cluster
- Install the required programs listed in the various README files from the tutorials.
- Start docker
sudo dockerd
- Create a cluster (minikube was used in the discovery of this issue and the following command was used:
minikube start
) - Initialize dapr in the cluster:
dapr init -k --runtime-version 1.9.0-rc.3
- Run a tutorial that requires redis. For this example the "hello-kubernetes" tutorial was used
cd quickstarts/tutorials/hello-kubernetes; make validate
- Observe the failure
Problem 3: False status for "HEALTHY" on dapr
- Start docker
sudo dockerd
- Create a cluster (minikube was used in the discovery of this issue and the following command was used:
minikube start
) - Initialize dapr in the cluster:
dapr init -k --runtime-version 1.9.0-rc.3
- Immediately start one of the tutorials and notice that the "HEALTHY" status is "False" yet the "Step: Check dapr status" still passes
Here's a link on how to setup redis: https://docs.dapr.io/getting-started/tutorials/configure-state-pubsub/#step-1-create-a-redis-store