Add OpenShift Registry Example
- Log into RedHat OpenShift Container Platform as the administrator, go to Networking > Routes, make a note of the Openshift registry url:
- Use an API client like Postman to call the API (/v2/catalog) using Openshift Registry url with Get method:
- Make a note of the repository names to be added: "openshift/cli", "openshift/golang", and "openshift/httpd".
- Log into FortiCWP > Container Protection. From the navigation menu, go to CONFIGURE > Registry, click +ADD NEW and select Openshift Container Registry.
- Enter the Openshift Container Registry url: https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com.
- In Repository, enter "openshift/cli"
- In Tag field, enter ".*" to scan all images of the repository.
- In CAP field, enter 5 as the maximum images to be scanned.
- Click +Add New Repository to add "openshift/golang" and "openshift/httpd", repeat step b-d.
- Click Select Openshift Service Account drop down menu to select the Openshift Service account user of the registry.
- Click Scan Images in the following Kubernetes Cluster drop down menu and select a Kubernetes cluster, then click Add Registry.
https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com
https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com/v2/catalog/.