spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

how to config if there's a password in Redis

Open liaoxu opened this issue 7 years ago • 1 comments

My current kubernetes cluster do not have enough support for stateful Pod so I have to deploy a redis server in public cloud enviornment where a password is mandatory. However, the existed demo seems only set redis host and port, I wonder how to connect to a redis server with auth.

liaoxu avatar Jan 07 '19 12:01 liaoxu

Hi, @liaoxu. If you have a password enabled external Redis cluster, all you'd have to do is to make sure that the SCDF-server and the Analytics applications receive the Redis-connection creds including the password. To do that, depending on the binder in use, you'd have to add the password (i.e., SPRING_REDIS_PASSWORD; for all the supported properties, see Spring Boot's RedisProperties) property alongside the host/port combination, to both the SCDF-server and env-vars to be assigned for the Analytics applications.

These two changes are specific to when Kafka is used as the binder; for Rabbit, you'd do a similar change to server-config-rabbit.yaml.

For questions like this, please use StackOverflow in the future.

sabbyanandan avatar Jan 07 '19 16:01 sabbyanandan