Switching to another Redis instance?

It seems that a normal container(instead of kubernetes pods) cannot connect to a kubernetes ClusterIP. I tried to connect to my new Redis instance using redis-cli in a Redis container and failed. However, I can connect to the Redis instance on host. What’s the recommended way to build in a Kubernetes environment?