Skip to content

Commit 2878707

Browse files
committed
Patching CLI with fix for Redis in --dev mode
Signed-off-by: Paul Yuknewicz <[email protected]>
1 parent 2415ab5 commit 2878707

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/env/global.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DAPR_CLI_VERSION: 1.13.0
1+
DAPR_CLI_VERSION: 1.14.0-rc.7
22
DAPR_RUNTIME_VERSION: 1.13.5
33
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v${DAPR_CLI_VERSION}/install/
44
DAPR_DEFAULT_IMAGE_REGISTRY: ghcr

tutorials/hello-kubernetes/README.md

+18
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,23 @@ You will see output like the following. All services should show `True` in the H
7373
dapr-sidecar-injector dapr-system True Running 1 1.13.5 42s 2024-07-22 13:53.04
7474
```
7575

76+
### Step 2 - Configure the Redis Statestore component
77+
78+
Apply the `redis.yaml` file and observe that your state store was successfully configured!
79+
80+
<!-- STEP
81+
name: Deploy redis config
82+
sleep: 1
83+
expected_stdout_lines:
84+
- "component.dapr.io/statestore created"
85+
-->
86+
87+
```bash
88+
kubectl apply -f ./deploy/redis.yaml
89+
```
90+
<!-- END_STEP -->
91+
92+
7693
## Using the `kubectl` CLI
7794

7895
### Step 2 - Deploy the Node.js app with the Dapr sidecar
@@ -362,6 +379,7 @@ expected_stdout_lines:
362379
- service "nodeapp" deleted
363380
- deployment.apps "nodeapp" deleted
364381
- deployment.apps "pythonapp" deleted
382+
- component.dapr.io "statestore" deleted
365383
output_match_mode: substring
366384
match_order: none
367385
tags:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: dapr.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: statestore
5+
spec:
6+
type: state.redis
7+
version: v1
8+
metadata:
9+
# These settings will work out of the box if you use `helm install
10+
# bitnami/redis`. If you have your own setup, replace
11+
# `redis-master:6379` with your own Redis master address, and the
12+
# Redis password with your own Secret's name. For more information,
13+
# see https://docs.dapr.io/operations/components/component-secrets
14+
- name: redisHost
15+
value: dapr-dev-redis-master:6379
16+
- name: redisPassword
17+
secretKeyRef:
18+
name: dapr-dev-redis
19+
key: redis-password
20+
auth:
21+
secretStore: kubernetes

0 commit comments

Comments
 (0)