mirror of https://github.com/dapr/docs.git
fixed errors in redis.yaml sample (#160)
This commit is contained in:
parent
310873f3f6
commit
07be03d705
|
@ -59,7 +59,7 @@ Dapr can use Redis as a `statestore` component (for state persistence and retrie
|
||||||
|
|
||||||
### Configuring Redis for State Persistence and Retrieval
|
### Configuring Redis for State Persistence and Retrieval
|
||||||
|
|
||||||
Create a file called redis.yaml, and paste the following:
|
Create a file called redis-state.yaml, and paste the following:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: dapr.io/v1alpha1
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
@ -77,15 +77,15 @@ spec:
|
||||||
|
|
||||||
### Configuring Redis for Pub/Sub
|
### Configuring Redis for Pub/Sub
|
||||||
|
|
||||||
Create a file called redis.yaml, and paste the following:
|
Create a file called redis-pubsub.yaml, and paste the following:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: dapr.io/v1alpha1
|
apiVersion: dapr.io/v1alpha1
|
||||||
kind: Component
|
kind: Component
|
||||||
metadata:
|
metadata:
|
||||||
name: statestore
|
name: messagebus
|
||||||
spec:
|
spec:
|
||||||
type: state.redis
|
type: pubsub.redis
|
||||||
metadata:
|
metadata:
|
||||||
- name: redisHost
|
- name: redisHost
|
||||||
value: <HOST>
|
value: <HOST>
|
||||||
|
@ -98,7 +98,9 @@ spec:
|
||||||
### Kubernetes
|
### Kubernetes
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f redis.yaml
|
kubectl apply -f redis-state.yaml
|
||||||
|
|
||||||
|
kubectl apply -f redis-pubsub.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Standalone
|
### Standalone
|
||||||
|
|
Loading…
Reference in New Issue