-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Creating environment variables from a file #116993
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Relevant to kubernetes/website#40394 |
I'm broadly supportive of this. I also think there's some room for us to address and improve the ability to force a restart of a container when config changes. Historically we've deferred this, but the code to implement dynamic restart is kind of burdensome and unlike secrets where you don't want them to show up in env at all, file config could be a place where restart makes sense and is more efficient to implement once for all containers in the same place. Batch workloads also tend to be very config heavy and care more about reducing latency of config showing up vs the service workload preserving availability. |
Also, this directly benefits composability of containers (performing config transformation for regular containers without having to mix that code into the container) and separating out templatization of config from the container itself (first described in #1007) |
/sig storage Probably should work via EmptyDir. |
This seems like it's functionally the same as generating a file in the init container, writing it to a shared emptyDir, and then |
Discused at sig node recently: https://docs.google.com/document/d/1Ne57gvidMEWXR70OxxnRkYquAoMpt56o75oZtg-OeBg/edit#bookmark=id.4w97rjwomiaq Similar request: #114674 Definitely interesting feature to have - good usability improvement. |
Another use case:
|
Just an FYI, We have been using the NRI plugin to workaround this limitation right now. Working pretty well. xref: #114674 (comment) |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What would you like to be added?
The ability to create an environment variable from a file.
Why is this needed?
Imagine the case where an initContainer creates some configuration (e.g., Tensorflow's TF_CONFIG) that needs to be consumed as an environment variable by the main container.
The initContainer and the main container can share a volume that the initContainer writes the configuration to and k8s automatically loads that as an environment variable into the main container.
/wg batch
/sig node
The text was updated successfully, but these errors were encountered: