FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
NewsDevOps

Kubernetes v1.34: Use An Init Container To Define App Environment Variables

via Kubernetes Blog6mo ago

Kubernetes typically uses ConfigMaps and Secrets to set environment variables, which introduces additional API calls and complexity, For example, you need to separately manage the Pods of your workloads and their configurations, while ensuring orderly updates for both the configurations and the workload Pods. Alternatively, you might be using a vendor-supplied container that requires environment variables (such as a license key or a one-time token), but you don’t want to hard-code them or mount volumes just to get the job done. If that's the situation you are in, you now have a new (alpha) way to achieve that. Provided you have the EnvFiles feature gate enabled across your cluster, you can tell the kubelet to load a container's environment variables from a volume (the volume must be part of the Pod that the container belongs to). this feature gate allows you to load environment variables directly from a file in an emptyDir volume without actually mounting that file into the container.

Continue reading on Kubernetes Blog

Opens in a new tab

Read Full Article
15 views

Related Articles

20+ pocket-sized tech gadgets packed with purpose (and they're on sale)
News

20+ pocket-sized tech gadgets packed with purpose (and they're on sale)

ZDNet • 7h ago

We still highly recommend these 3 older laptop models - especially while they're on sale
News

We still highly recommend these 3 older laptop models - especially while they're on sale

ZDNet • 8h ago

RefundYourSOL (RYS): Recovering Lost Value in the Solana Ecosystem
News

RefundYourSOL (RYS): Recovering Lost Value in the Solana Ecosystem

Medium Programming • 8h ago

News

Best Free Developer Tools Online (2026)

Medium Programming • 9h ago

Go’s Error Evolution: Best Practices for Cleaner, More Inspectable Code in 2026
News

Go’s Error Evolution: Best Practices for Cleaner, More Inspectable Code in 2026

Medium Programming • 9h ago

Discover More Articles