Run a curl command in kubernetes
kubectl run curl-x --image=radial/busyboxplus:curl -i --tty --rm
Run redis-cli
kubectl run -i --tty --rm redis-cli --image=redis --restart=Never -- bash
Connect to redis
redis-cli -h <REDIS_HOST> -p <REDIS_PORT>
Example connecting to AWS MEMORY DB
redis-cli --tls --insecure -h <cluster>.memorydb.ap-southeast-1.amazonaws.com -p 6379
Run some command
SET mykey Hello EX 60
GET mykey