Skip to content

Tutorials in Linux ARM64 k8s fail #739

Open
@RyanLettieri

Description

@RyanLettieri

Expected Behavior

There are multiple issues with the tutorials:

  1. 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)
  2. The pub-sub tutorial requires dotnet to be installed but the README does not list it as required,
  3. 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

  1. Install the required programs listed in the various README files from the tutorials.
  2. Start docker sudo dockerd
  3. Create a cluster (minikube was used in the discovery of this issue and the following command was used: minikube start)
  4. Initialize dapr in the cluster: dapr init -k --runtime-version 1.9.0-rc.3
  5. Run a tutorial that requires redis. For this example the "hello-kubernetes" tutorial was used cd quickstarts/tutorials/hello-kubernetes; make validate
  6. Observe the failure

Problem 3: False status for "HEALTHY" on dapr

  1. Start docker sudo dockerd
  2. Create a cluster (minikube was used in the discovery of this issue and the following command was used: minikube start)
  3. Initialize dapr in the cluster: dapr init -k --runtime-version 1.9.0-rc.3
  4. 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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions