marcel-dempers 02db1d7098 add files
2020-06-12 22:34:55 +10:00

10 lines
433 B
Bash

# Enable Redis Cluster
$IPs = $(kubectl -n example get pods -l app=redis-cluster -o jsonpath='{range.items[*]}{.status.podIP}:6379 ')
kubectl -n example exec -it redis-cluster-1 -- /bin/sh -c "redis-cli -h 127.0.0.1 -p 6379 --cluster create ${IPs}"
kubectl -n example exec -it redis-cluster-0 -- /bin/sh -c "redis-cli -h 127.0.0.1 -p 6379 cluster info"
# More info
https://rancher.com/blog/2019/deploying-redis-cluster