caverns-1xr0kha has the ConfigMap market-config and a Deployment market-web that does not use it yet. Import every key as variables with kubectl set env --from, then read one back with printenv.
Then mount the same ConfigMap as files:
sh
kubectl apply -n caverns-1xr0kha -f - <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: market-web
spec:
replicas: 1
selector:
matchLabels:
app: market-web
template:
metadata:
labels:
app: market-web
spec:
containers:
- name: monster-market-web
image: stackmonsters/monster-market-web
envFrom:
- configMapRef:
name: market-config
volumeMounts:
- name: cfg
mountPath: /etc/market
volumes:
- name: cfg
configMap:
name: market-config
EOFList /etc/market inside the new Pod.