SOP Configure Image Registry Operator
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
6a195f85ed
commit
2c7109e747
3 changed files with 64 additions and 8 deletions
|
@ -0,0 +1,59 @@
|
|||
== SOP Configure the Image Registry Operator
|
||||
|
||||
=== Resources
|
||||
- [1] https://docs.openshift.com/container-platform/4.8/registry/configuring_registry_storage/configuring-registry-storage-baremetal.html#configuring-registry-storage-baremetal[Configuring Registry Storage Baremetal]
|
||||
|
||||
|
||||
=== Enable the image registry operator
|
||||
For detailed instructions please refer to the official documentation for the particular version of Openshift [1].
|
||||
|
||||
From the `os-control01` node we can enable the Image Registry Operator set it to a `Managed` state like so via the CLI.:
|
||||
|
||||
----
|
||||
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed"}}'
|
||||
----
|
||||
|
||||
Next edit the configuration for the Image Registry operator like so:
|
||||
|
||||
----
|
||||
oc edit configs.imageregistry.operator.openshift.io
|
||||
----
|
||||
|
||||
Add the following to replace the `storage: {}`:
|
||||
|
||||
----
|
||||
...
|
||||
storage:
|
||||
pvc:
|
||||
claim:
|
||||
...
|
||||
----
|
||||
|
||||
Save the config.
|
||||
|
||||
The Image registry will automatically claim a 100G sized PV if available. It is best to open a ticket with Fedora Infra and have a 100G NFS share be created.
|
||||
|
||||
Use the following template for inspiration, populate the particular values to match the newly created NFS Share.
|
||||
|
||||
----
|
||||
kind: PersistentVolume
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: ocp-image-registry-volume
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
nfs:
|
||||
server: 10.3.162.11
|
||||
path: /ocp_prod_registry
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
volumeMode: Filesystem
|
||||
----
|
||||
|
||||
To create this new PV, create a persisent volume template file like above and apply it using the Openshift client tool like so:
|
||||
|
||||
----
|
||||
oc apply -f image-registry-pv.yaml
|
||||
----
|
|
@ -203,11 +203,7 @@ At this point the cluster is basically up and running.
|
|||
=== Follow on SOPs
|
||||
Several other SOPs should be followed to perform the post installation configuration on the cluster.
|
||||
|
||||
- http://linkmeh[Retrieve the OCP4 Cluster's CA Cert to configure haproxy]
|
||||
- http://linkmeh[Configure the Image Registry Operator to use NFS Storage]
|
||||
- http://linkmeh[Configure OIDC for Noggin/IPA in OCP4]
|
||||
- http://linkmeh[Disable self provisioners role]
|
||||
- http://linkmeh[Installation/Configuration of the Local Storage Operator]
|
||||
- http://linkmeh[Installation/Configuration of the Openshift Container Storage Operator]
|
||||
- http://linkmeh[Configure the OCP4 User Workload Monitoring Stack]
|
||||
|
||||
- xref:sop_configure_baremetal_pxe_uefi_boot.adoc[SOP Configure Baremetal PXE-UEFI Boot]
|
||||
- xref:sop_create_machineconfigs.adoc[SOP Create MachineConfigs to Configure RHCOS]
|
||||
- xref:sop_retrieve_ocp4_cacert.adoc[SOP Retrieve OCP4 CACERT]
|
||||
- xref:sop_configure_image_registry_operator.adoc[SOP Configure the Image Registry Operator]
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
- xref:sop_configure_baremetal_pxe_uefi_boot.adoc[SOP Configure Baremetal PXE-UEFI Boot]
|
||||
- xref:sop_create_machineconfigs.adoc[SOP Create MachineConfigs to Configure RHCOS]
|
||||
- xref:sop_retrieve_ocp4_cacert.adoc[SOP Retrieve OCP4 CACERT]
|
||||
- xref:sop_configure_image_registry_operator.adoc[SOP Configure the Image Registry Operator]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue