I have a configMap created from file:
configMap
kubectl create configmap ssportal-apache-conf --from-file=ssportal.conf=ssportal.conf
and th
Yes. In volumeMounts set subPath: ssportal.conf and mountPath: /etc/apache2/ssportal.conf. You may remove the items: ... too.
volumeMounts
subPath: ssportal.conf
mountPath: /etc/apache2/ssportal.conf
items: ...
Read more here: https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath