Kubernetes configMap - only one file

后端 未结 3 550
星月不相逢
星月不相逢 2021-02-05 08:00

I have a configMap created from file:

kubectl create configmap ssportal-apache-conf --from-file=ssportal.conf=ssportal.conf

and th

3条回答
  •  滥情空心
    2021-02-05 08:08

    Yes. In volumeMounts set subPath: ssportal.conf and mountPath: /etc/apache2/ssportal.conf. You may remove the items: ... too.

    Read more here: https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath

提交回复
热议问题