Setup RedisCache on IKS

71 views Asked by At

I have setup IKS and logged in to one of the container's command line.

I need to execute a script on that container that connects to RedisCache's client. Here is the script (testScript.py) I want to execute -

import redis
r = redis.Redis(host=‘master.some.path.of.redis.url.amazonaws.com’, port=6323, password=‘somePassword’, ssl=True)
r.set(‘foo’, ‘bar’)
value = r.get(‘foo’)
print(value)

I need help in understanding how to be able to setup Redis on the IKS.

0

There are 0 answers