File tree Expand file tree Collapse file tree 2 files changed +51
-10
lines changed
Expand file tree Collapse file tree 2 files changed +51
-10
lines changed Original file line number Diff line number Diff line change @@ -369,9 +369,54 @@ dapr_runtime() {
369369 # to only start a single instance rather than four.
370370 # helm repo add bitnami https://charts.bitnami.com/bitnami
371371 echo " ${blue} - Redis ${reset} "
372- $HELM repo add bitnami https://charts.bitnami.com/bitnami
373- $HELM install redis bitnami/redis --set image.tag=6.2
374- $HELM repo update
372+ # Deploy Redis using simple manifest with official Redis image
373+ # (Bitnami images have migration issues as of Sept 2025)
374+ $KUBECTL apply -f - << EOF
375+ apiVersion: v1
376+ kind: Service
377+ metadata:
378+ name: redis-master
379+ namespace: default
380+ spec:
381+ ports:
382+ - port: 6379
383+ targetPort: 6379
384+ selector:
385+ app: redis
386+ ---
387+ apiVersion: apps/v1
388+ kind: StatefulSet
389+ metadata:
390+ name: redis-master
391+ namespace: default
392+ spec:
393+ serviceName: redis-master
394+ replicas: 1
395+ selector:
396+ matchLabels:
397+ app: redis
398+ template:
399+ metadata:
400+ labels:
401+ app: redis
402+ spec:
403+ containers:
404+ - name: redis
405+ image: redis:7-alpine
406+ ports:
407+ - containerPort: 6379
408+ volumeMounts:
409+ - name: redis-storage
410+ mountPath: /data
411+ volumeClaimTemplates:
412+ - metadata:
413+ name: redis-storage
414+ spec:
415+ accessModes: [ "ReadWriteOnce" ]
416+ resources:
417+ requests:
418+ storage: 1Gi
419+ EOF
375420
376421 # 2) Expose a Redis-backed Dapr State Storage component
377422 echo " ${blue} - State Storage Component${reset} "
@@ -388,9 +433,7 @@ spec:
388433 - name: redisHost
389434 value: redis-master.default.svc.cluster.local:6379
390435 - name: redisPassword
391- secretKeyRef:
392- name: redis
393- key: redis-password
436+ value: ""
394437EOF
395438
396439 # 3) Expose A Redis-backed Dapr Pub/Sub Component
@@ -408,9 +451,7 @@ spec:
408451 - name: redisHost
409452 value: redis-master.default.svc.cluster.local:6379
410453 - name: redisPassword
411- secretKeyRef:
412- name: redis
413- key: redis-password
454+ value: ""
414455EOF
415456
416457 echo " ${green} ✅ Dapr Runtime${reset} "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ install_binaries() {
2727
2828 local kubectl_version=1.32.0
2929 local kind_version=0.26.0
30- local dapr_version=1.11 .0
30+ local dapr_version=1.16 .0
3131 local helm_version=3.12.0
3232 local stern_version=1.25.0
3333 local kn_version=1.13.0
You can’t perform that action at this time.
0 commit comments