How to set environment variables for host-containers? #4315
-
Hello, After checking the documentation, github issues and discussions I didn't find any native way to set environment variables for host-containers.
The reason for runnning them as a host-containers is to make sure that we have logs and metrics even if the instance hasn't joined the cluster. The ability to add environment variables for host-containers would eliminate the need to create custom containers that can process user-data. Instead you would be able to use original container and configure it via environment variables. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for reaching out. Setting environment variables on host-containers isn't currently supported in host-containers on Bottlerocket. It is a good feature that we will consider implementing in the future. For now, I have created an issue on our end that we can track and reference for this. |
Beta Was this translation helpful? Give feedback.
-
Hello @vigh-m , Thanks |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out. Setting environment variables on host-containers isn't currently supported in host-containers on Bottlerocket. It is a good feature that we will consider implementing in the future. For now, I have created an issue on our end that we can track and reference for this.