Mount ConfigMap and Secret Using a Single Volume
Scenario
Create a Pod named app in the namespace exam using the image busybox.
Configure the container to execute the command:
sleep 3600
Ensure that the existing ConfigMap app-config and Secret app-secret are both available inside the container at the path /etc/app.
Define only one volume named app-config-vol and mount it as readOnly
No additional resources should be created.
Hint
A projected volume allows you to combine multiple sources (ConfigMaps, Secrets, etc.) into a single volume.