Using configMaps for persistence is not something you would consider for data storage. Rather it is a way to manage configuration files and ensure they are not lost as a result of Pod replacement.
to demonstrate this, we will use the HTML file that came with Nginx. This file can be found in /usr/share/nginx/html/index.html directory.
Lets go through the below process so that you can see an example of a configMap use case.
Remove the volumeMounts and PVC sections of the manifest and use kubectl to app...
To Access Our Live session
Sign Up for Free
Chat With Support
You have 0 mentoring session left
Check Our Blog For Solutions
Ask Peers For Help On Our Channel
Buy More Sessions
You need to upgrade your plan to gain access