Trident 安装或升级无法根据任何安全上下文约束进行验证
适用于
- Trident
- OpenShift 4.11 或更高版本(带有安全上下文约束)
- Kubernetes 1.25 或更高版本
问题描述
Trident 安装或升级失败,出现以下错误:
pods "trident-controller-xxxxx" is forbidden: unable to validate against any security context constraint: [spec.volumes[4]: Invalid value: "secret": secret volumes are not allowed to be used, spec.volumes[5]: Invalid value: "csi": csi volumes are not allowed to be used, spec.volumes[7]: Invalid value: "secret": secret volumes are not allowed to be used]