Search code examples
ibm-cloud-privatecloud-automation-manager

Cloud Automation Manager Internal Service Error on IBM Cloud Private


I'm trying to install CAM through ICP, but I am constantly getting this error:

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

Does anyone know why this internal service error is occurring?


Solution

  • create a imagepolicy.yaml file:

    apiVersion: securityenforcement.admission.cloud.ibm.com/v1beta1
    kind: ImagePolicy
    metadata:
      name: image-policy
    spec:
      repositories:
      - name: "docker.io/store/ibmcorp/*"
        policy: null
    

    and kubectl apply -f imagepolicy.yaml -n services