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
访客IP ,您的网络 访问优先

本站是个人博客,书写大数据、数据科学等领域的原创学习记录,转载请注明出处

本站运行于 腾讯云 腾讯云