Skip to content
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

Set environment variables for host-containers #4329

Open
vigh-m opened this issue Dec 10, 2024 Discussed in #4315 · 0 comments
Open

Set environment variables for host-containers #4329

vigh-m opened this issue Dec 10, 2024 Discussed in #4315 · 0 comments
Labels
area/settings Issues related to our settings handling status/needs-proposal Needs a more detailed proposal for next steps type/enhancement New feature or request

Comments

@vigh-m
Copy link
Contributor

vigh-m commented Dec 10, 2024

Discussed in #4315

Originally posted by dpavlov-smartling November 26, 2024
Hello,

After checking the documentation, github issues and discussions I didn't find any native way to set environment variables for host-containers.
As of now, it seems that the only way is to specify the needed values in the host-container's user-data and then propagate them in the container's entrypoint.
My use case is monitoring of the instance including its metrics and logs:

  1. To get Bottlerocket logs from journald I use custom Splunk container
  2. To collect rest of the metrics I want to use Datadog

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.
This is for audit purpose.

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,

@vigh-m vigh-m added type/enhancement New feature or request status/needs-proposal Needs a more detailed proposal for next steps area/settings Issues related to our settings handling labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/settings Issues related to our settings handling status/needs-proposal Needs a more detailed proposal for next steps type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant