You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The plugin was implemented generally assuming it will be used locally but it can also connect to a specific IP address. Your use-case is not supported currently. You can provide a patch if you want but I do not think there is a simple way to support this. An environment variable would work but seems like an unsafe way for communicating this kind of information.
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
The text was updated successfully, but these errors were encountered: