-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with JSONata config #67
Comments
Hi @PJ-Schulz ! |
Unfortunately it did not work for me to use the URL as an environment variable. As workaround i pass building the Json config in Kubernetes and pass this as full config to the Redis Instance Node. Maybe this helps other Users. containers:
- name: nodered
image: nodered/node-red:4.0.2
env:
- name: REDIS_CONFIG
value: |
{
"host": "redis-server",
"port": 6379,
"db": 0,
"username": "$(redis_username)",
"password": "$(redis_password)"
}
envFrom:
- secretRef:
name: redis-user-nodered # containes the keys: "redis_username", "redis_password"
|
Hey @PJ-Schulz , you could help the community and contribute to this project? |
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: 3410396 because I use NodeRed 4
My flow:
The text was updated successfully, but these errors were encountered: