On Mon, Sep 7, 2020, 02:22 Ravi Patel <ravi.pa...@sabrex.com> wrote:

> Hi Ben,
>
>
>
> I found the issue! I had already provisioned NFS storage, but had missed a
> bit of config: Setting the empty storage/pvc/claim
>
>
>
> *configs.imageregistry.operator.openshift.io
> <http://configs.imageregistry.operator.openshift.io>*
>
> storage:
>     pvc:
>       claim:
>
>
>
> It’s a little odd, just adding this alone, the config wouldn’t save (rather 
> the change was not recognised). I had to revert “managementState: Managed” to 
> ‘Removed‘, and then back to Managed (together with storage/pcv/claim) before 
> it saved.
>
>
>
Yes I believe there is some validation logic intended to keep you from
changing the storage type without first removing the registry because
changing the storage type has significant consequences in terms of losing
your existing image content. (it also means any existing imagestreams you
had that were backed by the registry are now invalid since their image
content is gone)



Thanks!
>
> Ravi
>
>
>
> *From:* Ben Parees <bpar...@redhat.com>
> *Sent:* 06 September 2020 21:27
> *To:* Ravi Patel <ravi.pa...@sabrex.com>
> *Cc:* users@lists.openshift.redhat.com
> *Subject:* Re: Image Registry on bare metal install?
>
>
>
>
>
>
>
> On Sun, Sep 6, 2020 at 11:28 AM Ravi Patel <ravi.pa...@sabrex.com> wrote:
>
> Hi!
>
>
>
> I’ve installed OCP 4.5 (updated to 4.7) as a bare-metal install on a
> single ESX server. All seems well.
>
> I’m now trying to deploy a package, which requires a route to the Image
> Registry.
>
>
>
> If I understand the documentation correctly, the Image Registry is not
> installed by default on bare-metal installs.
>
>
>
> Are there any guides on what I need to do to install & expose the registry?
>
>
>
> exposing the registry via a route:
>
>
> https://docs.openshift.com/container-platform/4.5/registry/securing-exposing-registry.html
>
>
>
> storage configuration:
>
>
> https://docs.openshift.com/container-platform/4.5/registry/configuring_registry_storage/configuring-registry-storage-baremetal.html
>
>
>
> That doc covers configuring the registry to use a PVC (what volume backs
> that PVC will be up to you and your cluster, but it needs to be something
> that can be mounted read/write/many so that multiple nodes can mount it.
> Which usually does mean NFS).
>
>
>
> But you can also use s3 or GCS as your registry storage.  Configuration
> guides can be found here:
>
>
> https://docs.openshift.com/container-platform/4.5/registry/configuring_registry_storage/configuring-registry-storage-aws-user-infrastructure.html
>
>
> https://docs.openshift.com/container-platform/4.5/registry/configuring_registry_storage/configuring-registry-storage-gcp-user-infrastructure.html
>
>
> https://docs.openshift.com/container-platform/4.5/registry/configuring_registry_storage/configuring-registry-storage-azure-user-infrastructure.html
>
>
>
>
>
>
>
> Do I need to provide object-storage somehow (connect to S3?) or can it use
> my existing NFS?
>
>
>
> Either, as long as you've made your NFS storage mountable as a PV in your
> cluster.
>
>
>
>
>
>
>
> Thanks,
>
> *Ravi K Patel*
> ------------------------------
>
> SabreX Ltd. - Registered in England and Wales with number 12181080.
> Registered office: Ossington Chambers | 6-8 Castle Gate | Newark | NG24 1AX
> | UK
>
> The information contained in this communication from the sender is
> confidential. It is intended solely for use by the recipient and others
> authorized to receive it. If you are not the recipient or you have received
> this message in error, you are hereby notified that any disclosure,
> copying, distribution or taking action in relation of the contents of this
> information is strictly prohibited and may be unlawful. Further, please
> send it back to us immediately and delete it.
> ------------------------------
>
> _______________________________________________
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
>
> --
>
> Ben Parees | OpenShift
> ------------------------------
> SabreX Ltd. - Registered in England and Wales with number 12181080.
> Registered office: Ossington Chambers | 6-8 Castle Gate | Newark | NG24 1AX
> | UK
> The information contained in this communication from the sender is
> confidential. It is intended solely for use by the recipient and others
> authorized to receive it. If you are not the recipient or you have received
> this message in error, you are hereby notified that any disclosure,
> copying, distribution or taking action in relation of the contents of this
> information is strictly prohibited and may be unlawful. Further, please
> send it back to us immediately and delete it.
> ------------------------------
>
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to