File tree 3 files changed +40
-1
lines changed
tutorials/hello-kubernetes
3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1
- DAPR_CLI_VERSION : 1.13.0
1
+ DAPR_CLI_VERSION : 1.14.0-rc.7
2
2
DAPR_RUNTIME_VERSION : 1.13.5
3
3
DAPR_INSTALL_URL : https://raw.githubusercontent.com/dapr/cli/v${ DAPR_CLI_VERSION } /install/
4
4
DAPR_DEFAULT_IMAGE_REGISTRY : ghcr
Original file line number Diff line number Diff line change @@ -73,6 +73,23 @@ You will see output like the following. All services should show `True` in the H
73
73
dapr-sidecar-injector dapr-system True Running 1 1.13.5 42s 2024-07-22 13:53.04
74
74
```
75
75
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
+
76
93
## Using the ` kubectl ` CLI
77
94
78
95
### Step 2 - Deploy the Node.js app with the Dapr sidecar
@@ -362,6 +379,7 @@ expected_stdout_lines:
362
379
- service "nodeapp" deleted
363
380
- deployment.apps "nodeapp" deleted
364
381
- deployment.apps "pythonapp" deleted
382
+ - component.dapr.io "statestore" deleted
365
383
output_match_mode: substring
366
384
match_order: none
367
385
tags:
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments