I am deploying my application using Kubernetes. I need configuration from config maps and i am providing via config map generator as below:
configMapGenerator:
- name: example
files:
- app.properties
But very often the properties from app.properties are not available when i try to view config map as below:
kubectl describe configmaps example
When pods are initially created i believe the properties are available, but not when pods are destroyer and recreated.
Also i have a question on below:
Are config maps injected during application startup or application will reach out to config map when it wants to read the value from config map?
Any suggestions on this are helpful. Thanks in advance.