部署 CAM 时出现内部错误:admission webhook 错误
Deploying CAM I get Internal error occurred: admission webhook error
我在部署 CAM helm chart 时收到此错误代码:
Internal service error : rpc error: code = Unknown desc = release cam failed: Internal error occurred: admission webhook "trust.hooks.securityenforcement.admission.cloud.ibm.com" denied the request: Deny "mycluster.icp:8500/services/icam-bpd-cds:3.1.0.0-x86_64", no matching repositories in ClusterImagePolicy and no ImagePolicies in the "services" namespace
通过命令行:
kubectl edit clusterimagepolicies $(kubectl get clusterimagepolicies --no-headers | awk ‘{print }’)
检查 -name 条目列表。
里面应该已经有东西了
mycluster.icp:8500/*
您可以尝试添加显式
-name mycluster.icp:8500/services/icam-bpd-cds:*
entry 和 wq 写作和退出,看看是否有帮助。
我在部署 CAM helm chart 时收到此错误代码:
Internal service error : rpc error: code = Unknown desc = release cam failed: Internal error occurred: admission webhook "trust.hooks.securityenforcement.admission.cloud.ibm.com" denied the request: Deny "mycluster.icp:8500/services/icam-bpd-cds:3.1.0.0-x86_64", no matching repositories in ClusterImagePolicy and no ImagePolicies in the "services" namespace
通过命令行:
kubectl edit clusterimagepolicies $(kubectl get clusterimagepolicies --no-headers | awk ‘{print }’)
检查 -name 条目列表。
里面应该已经有东西了mycluster.icp:8500/*
您可以尝试添加显式
-name mycluster.icp:8500/services/icam-bpd-cds:*
entry 和 wq 写作和退出,看看是否有帮助。