I have a configMap created from file:
configMap
kubectl create configmap ssportal-apache-conf --from-file=ssportal.conf=ssportal.conf
and th
This works for me too. Useful in case you have more than one file inside the configmap.
volumeMounts: - name: test mountPath: /etc/apache2/conf-enabled/test.conf subPath: test.conf volumes: - name: test configMap: name: test - key: test.conf path: test.conf