使用openshift搭建的k8s的api创建Deployment,在启动的时候报下面的错误:

Invalid value: “hostPath”: hostPath volumes are not allowed to be used]

解决方案:

一个方案是将user加入privileged scc中,另一个方案就是:

oc edit scc restricted
#添加下面这行
allowHostDirVolumePlugin: true

相关文章:

  • 2021-11-17
  • 2021-12-10
  • 2022-01-07
  • 2021-11-26
  • 2022-01-14
  • 2021-10-02
  • 2021-11-25
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-06-20
  • 2021-12-04
相关资源
相似解决方案