Skip to content

Commit

Permalink
Fix redis version in hello-app-redis example (#322)
Browse files Browse the repository at this point in the history
Following the codelab https://cloud.google.com/kubernetes-engine/docs/tutorials/upgrading-stateful-workload today yields an error: 
```
500 - Error due to redis cluster broken!
got 4 elements in cluster info address, expected 2 or 3
```

This seems to be because redis version 7 was released April of this year and is currently incompatible with go-redis. See 
redis/go-redis#2085 .

For now, we should fix redis in the codelab at 6.2 for it to continue working. Once a stable go-redis is released (v9 currently in beta -- https://github.com/go-redis/redis/tree/v9.0.0-beta.1), we can fix this to v7 instead, rebuild the image used in the app-deployment to the latest go-redis version as an alternative fix.
  • Loading branch information
yqlu authored Jun 17, 2022
1 parent 507184f commit 8759b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hello-app-redis/manifests/redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
cpu: "100m"
memory: "100Mi"
ports:
- name: redis
- name: redis:6.2
containerPort: 6379
protocol: "TCP"
- name: cluster
Expand Down

0 comments on commit 8759b46

Please sign in to comment.