You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Configuring block registry storage for bare metal
12
12
13
13
To allow the image registry to use block storage types during upgrades as a cluster administrator, you can use the `Recreate` rollout strategy.
14
14
@@ -21,13 +21,55 @@ If you choose to use a block storage volume with the image registry, you must us
21
21
22
22
.Procedure
23
23
24
-
. To set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy and runs with only one (`1`) replica:
24
+
. Enter the following command to set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy, and runs with only one (`1`) replica:
. Provision the PV for the block storage device, and create a PVC for that volume. The requested block volume uses the ReadWriteOnce (RWO) access mode.
32
+
.. Create a `pvc.yaml` file with the following contents to define a VMware vSphere `PersistentVolumeClaim` object:
33
+
+
34
+
[source,yaml]
35
+
----
36
+
kind: PersistentVolumeClaim
37
+
apiVersion: v1
38
+
metadata:
39
+
name: image-registry-storage <1>
40
+
namespace: openshift-image-registry <2>
41
+
spec:
42
+
accessModes:
43
+
- ReadWriteOnce <3>
44
+
resources:
45
+
requests:
46
+
storage: 100Gi <4>
47
+
----
48
+
<1> A unique name that represents the `PersistentVolumeClaim` object.
49
+
<2> The namespace for the `PersistentVolumeClaim` object, which is `openshift-image-registry`.
50
+
<3> The access mode of the persistent volume claim. With `ReadWriteOnce`, the volume can be mounted with read and write permissions by a single node.
51
+
<4> The size of the persistent volume claim.
52
+
53
+
.. Enter the following command to create the `PersistentVolumeClaim` object from the file:
Copy file name to clipboardExpand all lines: modules/installation-registry-storage-block-recreate-rollout-nutanix.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ If you choose to use a block storage volume with the image registry, you must us
21
21
22
22
.Procedure
23
23
24
-
. To set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy and runs with only one (`1`) replica:
24
+
. Enter the following command to set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy, and runs with only one (`1`) replica:
25
25
+
26
26
[source,terminal]
27
27
----
@@ -51,14 +51,14 @@ spec:
51
51
<3> The access mode of the persistent volume claim. With `ReadWriteOnce`, the volume can be mounted with read and write permissions by a single node.
52
52
<4> The size of the persistent volume claim.
53
53
54
-
.. Create the `PersistentVolumeClaim` object from the file:
54
+
.. Enter the following command to create the `PersistentVolumeClaim` object from the file:
Copy file name to clipboardExpand all lines: modules/installation-registry-storage-block-recreate-rollout.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ have more than one replica.
24
24
25
25
.Procedure
26
26
27
-
. To set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy and runs with only `1` replica:
27
+
. Enter the following command to set the image registry storage as a block storage type, patch the registry so that it uses the `Recreate` rollout strategy, and runs with only `1` replica:
28
28
+
29
29
[source,terminal]
30
30
----
@@ -53,15 +53,15 @@ spec:
53
53
<3> The access mode of the persistent volume claim. With `ReadWriteOnce`, the volume can be mounted with read and write permissions by a single node.
54
54
<4> The size of the persistent volume claim.
55
55
56
-
.. Create the `PersistentVolumeClaim` object from the file:
56
+
.. Enter the following command to create the `PersistentVolumeClaim` object from the file:
0 commit comments