netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

Issue with Redis Configuration in Kubernetes for Sysrepo Compilation

Open VishalGujela opened this issue 11 months ago • 1 comments

Hi,

I’ve been trying to set up Redis inside a Kubernetes cluster, but I'm facing an issue when compiling Sysrepo. As mentioned in the CMakeLists.txt of Sysrepo, the Redis configuration parameters need to be provided during the compilation: **CMake

Redis username, password, host, and port for the client

set(REDIS_USERNAME "" CACHE STRING "Username for Redis user, all operations are done via this client in case Redis plugin is supported. If not provided, no authentication is done.") set(REDIS_PASSWORD "" CACHE STRING "Password for Redis user in case Redis plugin is supported.") set(REDIS_HOST "192.167.67.100" CACHE STRING "Host for the Redis client to connect to.") set(REDIS_PORT 6379 CACHE STRING "Port for the Redis client to connect to.")** However, since Redis is running inside Kubernetes with a dynamically assigned IP, I’m unable to ping the specified IP address (192.167.67.100) during the compilation process.

How should I proceed with the compilation if Redis is not reachable by this static IP? Is there an alternative way to configure Sysrepo when Redis is running inside a Kubernetes environment with dynamic IPs?

Thanks, Vishal

VishalGujela avatar Nov 11 '24 13:11 VishalGujela