View on GitHub

ocp4-docs

Documentation for CentOS CI Infra initiative - OpenShift 4.4 deployment on Baremetal

Image Registry

Resources

Prerequisites

To start the image registry, you must change ManagementState Image Registry Operator configuration from Removed to Managed. Leave the claim field blank to allow the automatic creation of an image-registry-storage PVC.

$ oc edit configs.imageregistry/cluster
apiVersion: imageregistry.operator.openshift.io/v1
kind: Config
metadata:
...
spec:
...
  managementState: Managed
  storage:
    pvc:
      claim:
...

We want to enable the image pruner, to occationally prune images in the registry.

$ oc edit imagepruner.imageregistry/cluster
apiVersion: imageregistry.operator.openshift.io/v1
kind: ImagePruner
metadata:
  name: cluster
spec:
  suspend: false
...

Check the status of the deployment:

oc get clusteroperator image-registry