Y. Ro
Y. Ro

Reputation: 3

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?

Upvotes: 0

Views: 376

Answers (2)

Nancy Heinz
Nancy Heinz

Reputation: 1

IBM Container Image Security Enforcement - see https://www.ibm.com/support/knowledgecenter/SSBS6K_3.1.0/manage_images/image_security.html for detailed explanation.

Can create or extend existing policies - ImagePolicy or ClusterImagePolicy depending on scope want allowed. Note : ImagePolicy overrides ClusterImagePolicy for given namespace so be careful to include all want allowed.

Upvotes: 0

Partha Kaushik
Partha Kaushik

Reputation: 28

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

Upvotes: 0

Related Questions