In Chapter 10 and some earlier chapters, we used the spec: containers: env: field to specify an environment variable for the Docker image mysql for the MySQL database.
Problem
Consider the use case that some environment variables such as username and password for a database are to be used in multiple replication controller or pod definition files. The username and password value would need to be specified in each of the definition files. And if the username and password were to change, all the definition files would need to be updated as well, which could be very tedious. Alternatively, ...