Skip to content

Editing the ConfigMap / changing env vars does not force containers to restart #72

Open
@batpad

Description

@batpad

Currently, if you change an environment variable for one of the containers, of edit the ConfigMap, it does not automatically restart the affected containers - i.e. the environment variable does not propagate to the container with a deploy, and it needs a manual restart of the container for the environment variables to propagate.

Steps to Reproduce:

  • Change an environment variable in values.yaml
  • Deploy

Expected:

  • My changed environment variable to be on the container

Actual:

  • The container does not restart because it does not know the ConfigMap has changed.

From chat with @ranchodeluxe on Slack:

"personally I'd just make my CI/CD bounce all services at deploy time and then you don't have to worry"

That sounds good to me. Another option would be to use an annotation on the deployments that's a hash of the ConfigMap, so if the ConfigMap changes, the hash changes, and that would force a container restart.

This is not urgent, just wanted to drop the issue so as not to forget.

cc @ranchodeluxe @sunu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions