Mounting Kubernetes config map as single file returns error: "caused: mount through procfd: not a directory: unknown"
原因是k8s的configmap不能挂载文件,只能挂载文件夹
本来以为自己的挂载的是文件夹
后面发现docker打包时添加文件命令
文件夹没有加 "/" 导致被打成文件了
add ./index.html /usr/share/nginx/html
最后导致挂载失败