Setup RedisCache on IKS

10/22/2019

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.

--
caching
command-line
iks
kubernetes
redis

0 Answers