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.

  1. Remove the volumeMounts and PVC sections of the manifest and use kubectl to app...
    Learn More