Skip to content

Instantly share code, notes, and snippets.

@paulyuk
Created July 23, 2024 21:14
Show Gist options
  • Save paulyuk/83fb7202d5b68decd3a7f861cc86d17f to your computer and use it in GitHub Desktop.
Save paulyuk/83fb7202d5b68decd3a7f861cc86d17f to your computer and use it in GitHub Desktop.
redis.yaml that works with `dapr init -k --dev`
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment