{"id":132,"date":"2024-03-21T17:32:10","date_gmt":"2024-03-21T09:32:10","guid":{"rendered":"https:\/\/blog.bijiafeng.com\/?p=132"},"modified":"2024-03-21T17:32:10","modified_gmt":"2024-03-21T09:32:10","slug":"openshift-configure-storage-for-container-platform-services","status":"publish","type":"post","link":"https:\/\/blog.bijiafeng.com\/?p=132","title":{"rendered":"OpenShift Configure storage for Container Platform services"},"content":{"rendered":"\n<p>Configuring Image Registry to use OpenShift Data Foundation<\/p>\n\n\n\n<p>1. Create a Persistent Volume Claim for the Image Registry to use.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. In the OpenShift Web Console, click <strong>Storage<\/strong> \u2192 <strong>Persistent Volume Claims<\/strong>.\n2. Set the <strong>Project<\/strong> to <span style=\"background-color: initial; font-size: 0.857143rem;\">openshift-image-registry.<\/span>\n3. Click <strong>Create Persistent Volume Claim<\/strong>.\n    From the list of available storage classes retrieved above, specify the   <strong>Storage Class<\/strong> with the provisioner <em>openshift-storage.cephfs.csi.ceph.com<\/em>.\n   Specify the Persistent Volume Claim <strong>Name<\/strong>, for example, <em>ocsregistry<\/em>.\n   Specify an <strong>Access Mode <\/strong>of <em>Shared Access (RWX)<\/em>.\n   Specify a <strong>Size<\/strong> of at least 100 GB.\n   Click <strong>Create<\/strong>.\n\nWait until the status of the new Persistent Volume Claim is listed as Bound.<\/code><\/pre>\n\n\n\n<p>2. Configure the cluster\u2019s Image Registry to use the new Persistent Volume Claim.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Click <strong>Administration<\/strong> \u2192 <strong>Custom Resource Definitions<\/strong>.\n2. Click the <em>Config<\/em> custom resource definition associated with the <em>imageregistry.operator.openshift.io group<\/em>.\n3. Click the <strong>Instances<\/strong> tab.\n4. Beside the cluster instance, click the <strong>Action Menu (\u22ee)<\/strong> \u2192 <strong>Edit Config<\/strong>.\n5. Add the new Persistent Volume Claim as persistent storage for the Image Registry.\n   Add the following under <em>spec:<\/em>, replacing the existing <em>storage:<\/em> section if necessary.\n<code>  storage:\n    pvc:\n      claim: &lt;new-pvc-name><\/code>   For example:\n<code>  storage:\n    pvc:\n      claim: ocs4registry<\/code>  Click <strong>Save<\/strong><\/code><\/pre>\n\n\n\n<p>3. Verify that the new configuration is being used.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Click <strong>Workloads<\/strong> \u2192 <strong>Pods<\/strong>.\r\n2. Set the <strong>Project<\/strong> to <em>openshift-image-registry<\/em>.\r\n3. Verify that the new <em>image-registry-*<\/em> pod appears with a status of <em>Running<\/em>, and that the previous <em>image-registry-*<\/em> pod terminates.\r\n4. Click the new <em>image-registry-*<\/em> pod to view pod details.\r\n5. Scroll down to <strong>Volumes<\/strong> and verify that the <em>registry-storage<\/em> volume has a <strong>Type<\/strong> that matches your new Persistent Volume Claim, for example, <em>ocsregistry<\/em>.<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/access.redhat.com\/documentation\/en-us\/red_hat_openshift_data_foundation\/4.15\/html-single\/managing_and_allocating_storage_resources\/index#configuring-image-registry-to-use-openshift-data-foundation_rhodf\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Configuring Image Registry to use OpenShift Data Foundation 1. Create a Persistent Volume Claim for the Image Registry to use. 2. Configure the cluster\u2019s Image Registry to use the new Persistent Volume Claim. 3. Verify that the new configuration is being used.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-openshift"],"_links":{"self":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":1,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}