IBM Cloud Private上的Cloud Automation Manager内部服务错误

时间:2018-10-03 16:15:24

标签: ibm-cloud-private cloud-automation-manager

我正在尝试通过ICP安装CAM,但是我一直在收到此错误:

json error: 
Object { message: "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: \nDeny \"docker.io/store/ibmcorp/icam-bpd-cds:3.1.0.0-x86_64\", no 
matching repositories in ClusterImagePolicy and no ImagePolicies in the 
\"services\" namespace", statusCode: 500 }
reducerCatalogDetails.js:255:8

有人知道为什么会发生此内部服务错误吗?

2 个答案:

答案 0 :(得分:0)

创建 imagepolicy.yaml 文件:

Private Sub UserForm_Initialize()
Dim ws      As Worksheet
Dim rng     As Range

Dim MyArray 
Set ws = Sheets("Database")

Set rng = ws.Range("K2:L" & ws.Range("K" & ws.Rows.Count).End(xlUp).Row)

With Me.ListBox1
.Clear
.ColumnHeads = False
.ColumnCount = rng.Columns.Count

 MyArray = rng

.List = MyArray

.ColumnWidths = "90;90"
.TopIndex = 0
End With
End Sub

Private Sub CommandButton2_Click()
For lItem = Me.ListBox1.ListCount - 1 To 0 Step -1
    If ListBox1.Selected(lItem) Then
        ListBox1.RemoveItem lItem
        If Me.ListBox1.MultiSelect = fmMultiSelectSingle Then
            Exit For
        End If
    End If
Next
End Sub

kubectl应用-f imagepolicy.yaml -n服务

答案 1 :(得分:0)

IBM Container Image Security Enforcement-有关详细说明,请参见https://www.ibm.com/support/knowledgecenter/SSBS6K_3.1.0/manage_images/image_security.html

可以创建或扩展现有策略-ImagePolicy或ClusterImagePolicy,具体取决于允许的范围。注意:ImagePolicy会覆盖给定名称空间的ClusterImagePolicy,因此请小心包含所有允许的名称。