Skip to content

Commit f6ddf7a

Browse files
committed
OSDOCS#9586: Replacing deprecated 'oc registry info' commands
1 parent 83b2894 commit f6ddf7a

3 files changed

+24
-18
lines changed

modules/configuring-private-storage-endpoint-azure-user-provided-vnet-subnet.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Use the following procedure to configure a storage account that has public netwo
1414
* You must know the VNet and subnet names used for your Azure environment.
1515
* If your network was configured in a separate resource group in Azure, you must also know its name.
1616
17-
.Procedure
17+
.Procedure
1818

1919
. Edit the Image Registry Operator `config` object and configure the private endpoint using your VNet and subnet names:
2020
+
@@ -40,7 +40,7 @@ spec:
4040
# ...
4141
----
4242

43-
. Optional: Enter the following command to confirm that the Operator has completed provisioning. This might take a few minutes.
43+
. Optional: Enter the following command to confirm that the Operator has completed provisioning. This might take a few minutes.
4444
+
4545
[source,terminal]
4646
----
@@ -58,14 +58,16 @@ When redirect is enabled, pulling images from outside of the cluster will not wo
5858
+
5959
[source,terminal]
6060
----
61-
$ oc registry info --internal=true
61+
$ oc get imagestream -n openshift
6262
----
6363
+
6464
.Example output
6565
+
6666
[source,terminal]
6767
----
68-
image-registry.openshift-image-registry.svc:5000
68+
NAME IMAGE REPOSITORY TAGS UPDATED
69+
cli image-registry.openshift-image-registry.svc:5000/openshift/cli latest 8 hours ago
70+
...
6971
----
7072

7173
. Enter debug mode by running the following command:
@@ -114,4 +116,4 @@ Copying config 22667f5368 done
114116
Writing manifest to image destination
115117
Storing signatures
116118
22667f53682a2920948d19c7133ab1c9c3f745805c14125859d20cede07f11f9
117-
----
119+
----

modules/configuring-private-storage-endpoint-azure-vnet-subnet-iro-discovery.adoc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
The following procedure shows you how to set up a private storage endpoint on Azure by configuring the Image Registry Operator to discover VNet and subnet names.
1010

11-
.Prerequisites
11+
.Prerequisites
1212

1313
* You have configured the image registry to run on Azure.
14-
* Your network has been set up using the Installer Provisioned Infrastructure installation method.
14+
* Your network has been set up using the Installer Provisioned Infrastructure installation method.
1515
+
16-
For users with a custom network setup, see "Configuring a private storage endpoint on Azure with user-provided VNet and subnet names".
16+
For users with a custom network setup, see "Configuring a private storage endpoint on Azure with user-provided VNet and subnet names".
1717
18-
.Procedure
18+
.Procedure
1919

2020
. Edit the Image Registry Operator `config` object and set `networkAccess.type` to `Internal`:
2121
+
@@ -37,7 +37,7 @@ spec:
3737
# ...
3838
----
3939

40-
. Optional: Enter the following command to confirm that the Operator has completed provisioning. This might take a few minutes.
40+
. Optional: Enter the following command to confirm that the Operator has completed provisioning. This might take a few minutes.
4141
+
4242
[source,terminal]
4343
----
@@ -62,14 +62,16 @@ When redirect is enabled, pulling images from outside of the cluster will not w
6262
+
6363
[source,terminal]
6464
----
65-
$ oc registry info --internal=true
65+
$ oc get imagestream -n openshift
6666
----
6767
+
6868
.Example output
6969
+
7070
[source,terminal]
7171
----
72-
image-registry.openshift-image-registry.svc:5000
72+
NAME IMAGE REPOSITORY TAGS UPDATED
73+
cli image-registry.openshift-image-registry.svc:5000/openshift/cli latest 8 hours ago
74+
...
7375
----
7476

7577
. Enter debug mode by running the following command:

modules/disabling-redirect-private-storage-endpoint-azure.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
[id="disabling-redirect-private-storage-endpoint-azure_{context}"]
77
= Optional: Disabling redirect when using a private storage endpoint on Azure
88

9-
By default, redirect is enabled when using the image registry. Redirect allows off-loading of traffic from the registry pods into the object storage, which makes pull faster. When redirect is enabled and the storage account is private, users from outside of the cluster are unable to pull images from the registry.
9+
By default, redirect is enabled when using the image registry. Redirect allows off-loading of traffic from the registry pods into the object storage, which makes pull faster. When redirect is enabled and the storage account is private, users from outside of the cluster are unable to pull images from the registry.
1010

11-
In some cases, users might want to disable redirect so that users from outside of the cluster can pull images from the registry.
11+
In some cases, users might want to disable redirect so that users from outside of the cluster can pull images from the registry.
1212

1313
Use the following procedure to disable redirect.
1414

@@ -19,7 +19,7 @@ Use the following procedure to disable redirect.
1919
2020
.Procedure
2121

22-
* Enter the following command to disable redirect on the image
22+
* Enter the following command to disable redirect on the image
2323
registry configuration:
2424
+
2525
[source,terminal]
@@ -33,14 +33,16 @@ $ oc patch configs.imageregistry cluster --type=merge -p '{"spec":{"disableRedir
3333
+
3434
[source,terminal]
3535
----
36-
$ oc registry info
36+
$ oc get imagestream -n openshift
3737
----
3838
+
3939
.Example output
4040
+
4141
[source,terminal]
4242
----
43-
default-route-openshift-image-registry.<cluster_dns>
43+
NAME IMAGE REPOSITORY TAGS UPDATED
44+
cli default-route-openshift-image-registry.<cluster_dns>/cli latest 8 hours ago
45+
...
4446
----
4547

4648
. Enter the following command to log in to your container registry:
@@ -76,4 +78,4 @@ Copying config 22667f5368 done
7678
Writing manifest to image destination
7779
Storing signatures
7880
22667f53682a2920948d19c7133ab1c9c3f745805c14125859d20cede07f11f9
79-
----
81+
----

0 commit comments

Comments
 (0)