Fortinet black logo

Online Help

Add OpenShift Registry Example

Copy Link
Copy Doc ID 623e79e5-e0e1-11eb-97f7-00505692583a:768936

Add OpenShift Registry Example

  1. Log into RedHat OpenShift Container Platform as the administrator, go to Networking > Routes, make a note of the Openshift registry url:
  2. https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com

  3. Use an API client like Postman to call the API (/v2/catalog) using Openshift Registry url with Get method:
  4. https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com/v2/catalog/.

  5. Make a note of the repository names to be added: "openshift/cli", "openshift/golang", and "openshift/httpd".
  6. Log into FortiCWP > Container Protection. From the navigation menu, go to CONFIGURE > Registry, click +ADD NEW and select Openshift Container Registry.
    1. Enter the Openshift Container Registry url: https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com.
    2. In Repository, enter "openshift/cli"
    3. In Tag field, enter ".*" to scan all images of the repository.
    4. In CAP field, enter 5 as the maximum images to be scanned.
    5. Click +Add New Repository to add "openshift/golang" and "openshift/httpd", repeat step b-d.
    6. Click Select Openshift Service Account drop down menu to select the Openshift Service account user of the registry.
    7. Click Scan Images in the following Kubernetes Cluster drop down menu and select the Kubernetes cluster where the registry is located, then click Add Registry.

Add OpenShift Registry Example

  1. Log into RedHat OpenShift Container Platform as the administrator, go to Networking > Routes, make a note of the Openshift registry url:
  2. https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com

  3. Use an API client like Postman to call the API (/v2/catalog) using Openshift Registry url with Get method:
  4. https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com/v2/catalog/.

  5. Make a note of the repository names to be added: "openshift/cli", "openshift/golang", and "openshift/httpd".
  6. Log into FortiCWP > Container Protection. From the navigation menu, go to CONFIGURE > Registry, click +ADD NEW and select Openshift Container Registry.
    1. Enter the Openshift Container Registry url: https://default-route-openshift-image-registry.apps.osregistrycluster.forticontainer-research.com.
    2. In Repository, enter "openshift/cli"
    3. In Tag field, enter ".*" to scan all images of the repository.
    4. In CAP field, enter 5 as the maximum images to be scanned.
    5. Click +Add New Repository to add "openshift/golang" and "openshift/httpd", repeat step b-d.
    6. Click Select Openshift Service Account drop down menu to select the Openshift Service account user of the registry.
    7. Click Scan Images in the following Kubernetes Cluster drop down menu and select the Kubernetes cluster where the registry is located, then click Add Registry.