Are you trying to mount a directory onto a file
unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
挂载子目录(subpath)时,mountPath 需要写文件的绝对的路径,而不是目录。
- mountPath: /etc/prometheus/prometheus.yml
name: prometheus-yml
subPath: prometheus.yml
1
2
3
2
3