1.

Is there any other way to update configmap for deployment without pod restarts?

Answer»

well you need to have some way of triggering the RELOAD. ether do a check every minute or have a reload endpoint for an API or project the CONFIGMAP as a volume, could use inotify to be aware of the change. Depends on how the configmap is consumed by the container. If env vars, then no. If a volumeMount, then the file is updated in the container ready to be consumed by the service but it needs to reload the file

The container does not restart. if the configmap is mounted as a volume it is updated dynamically. if it is an environment variable it stays as the old value until the container is restarted.volume mount the configmap into the pod, the PROJECTED file is updated periodically. NOT realtime. then have the app recognise if the config on DISK has changed and reload



Discussion

No Comment Found

Related InterviewSolutions