I run NodeRed in Kubernetes and want to pass some environment variables like host, username, password and so on as environment variables to the container.
But when I use at least a small variant only with the host address i get an error.
9 Jul 13:29:10 - [error] [redis-config:Redis] Missing options in the redis config - Are you upgrading from old version?
9 Jul 13:29:10 - [error] [redis-config:Redis] Missing options in the redis config - Are you upgrading from old version?
9 Jul 13:29:10 - [error] [redis-in:02924f467d4f2799] TypeError: Cannot read properties of undefined (reading 'on')
This is the configuration of my redis instance:
{
"host": $env('redis_host')
}
When I press the inject node which is configured with JSONata: $env('redis_host') I get the correct parameter I have set. So the environment variable will be passed correctly to the container and NodeRed can read it.
What must I change in my configuration to make it work?
PS: I am using this commit: 34103964acc7159388a1ca1c94d76894b272bab3 because I use NodeRed 4
I run NodeRed in Kubernetes and want to pass some environment variables like host, username, password and so on as environment variables to the container.
But when I use at least a small variant only with the host address i get an error.
This is the configuration of my redis instance:
When I press the inject node which is configured with JSONata:
$env('redis_host')
I get the correct parameter I have set. So the environment variable will be passed correctly to the container and NodeRed can read it.What must I change in my configuration to make it work?
PS: I am using this commit: 34103964acc7159388a1ca1c94d76894b272bab3 because I use NodeRed 4
My flow: