Skip to content

Commit

Permalink
Patching CLI with fix for Redis in --dev mode
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
  • Loading branch information
paulyuk committed Jul 24, 2024
1 parent 2415ab5 commit 2878707
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/env/global.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DAPR_CLI_VERSION: 1.13.0
DAPR_CLI_VERSION: 1.14.0-rc.7
DAPR_RUNTIME_VERSION: 1.13.5
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v${DAPR_CLI_VERSION}/install/
DAPR_DEFAULT_IMAGE_REGISTRY: ghcr
Expand Down
18 changes: 18 additions & 0 deletions tutorials/hello-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ You will see output like the following. All services should show `True` in the H
dapr-sidecar-injector dapr-system True Running 1 1.13.5 42s 2024-07-22 13:53.04
```

### Step 2 - Configure the Redis Statestore component

Apply the `redis.yaml` file and observe that your state store was successfully configured!

<!-- STEP
name: Deploy redis config
sleep: 1
expected_stdout_lines:
- "component.dapr.io/statestore created"
-->

```bash
kubectl apply -f ./deploy/redis.yaml
```
<!-- END_STEP -->


## Using the `kubectl` CLI

### Step 2 - Deploy the Node.js app with the Dapr sidecar
Expand Down Expand Up @@ -362,6 +379,7 @@ expected_stdout_lines:
- service "nodeapp" deleted
- deployment.apps "nodeapp" deleted
- deployment.apps "pythonapp" deleted
- component.dapr.io "statestore" deleted
output_match_mode: substring
match_order: none
tags:
Expand Down
21 changes: 21 additions & 0 deletions tutorials/hello-kubernetes/deploy/redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
type: state.redis
version: v1
metadata:
# These settings will work out of the box if you use `helm install
# bitnami/redis`. If you have your own setup, replace
# `redis-master:6379` with your own Redis master address, and the
# Redis password with your own Secret's name. For more information,
# see https://docs.dapr.io/operations/components/component-secrets
- name: redisHost
value: dapr-dev-redis-master:6379
- name: redisPassword
secretKeyRef:
name: dapr-dev-redis
key: redis-password
auth:
secretStore: kubernetes

0 comments on commit 2878707

Please sign in to comment.