kubernetes set root environmental variables kubernetes set root environmental variables kubernetes kubernetes

kubernetes set root environmental variables


since apache2 is a root process, it doesn't have the passed in environmental values.

If Use ConfigMap-defined environment variables is not possible, you could add ConfigMap data to a Volume, which then can be read by a wrapper to the apache2 runner.
That wrapper can:

  • read the values in the config-map-based volume
  • set the right environment variables
  • launch Apache2