File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -17,35 +17,42 @@ You can expose the route by using the `defaultRoute` parameter in the `configs.i
17
17
18
18
To expose the registry using the `defaultRoute` :
19
19
20
- . Set `defaultRoute` to `true` :
20
+ . Set `defaultRoute` to `true` by running the following command :
21
21
+
22
22
[source,terminal]
23
23
----
24
24
$ oc patch configs.imageregistry.operator.openshift.io/cluster -- patch '{"spec":{"defaultRoute":true}}' -- type=merge
25
25
----
26
26
+
27
- . Get the default registry route:
27
+ . Get the default registry route by running the following command :
28
28
+
29
29
[source,terminal]
30
30
----
31
31
$ HOST=$(oc get route default-route -n openshift-image-registry -- template='{{ .spec.host }}' )
32
32
----
33
33
34
- . Get the certificate of the Ingress Operator:
34
+ . Get the certificate of the Ingress Operator by running the following command :
35
35
+
36
36
[source,terminal]
37
37
----
38
38
$ oc extract secret/$(oc get ingresscontroller -n openshift-ingress-operator default -o json | jq '.spec.defaultCertificate.name // "router-certs-default"' -r) -n openshift-ingress -- confirm
39
39
----
40
40
41
- . Enable the cluster's default certificate to trust the route using the following commands:
41
+ . Move the extracted certificate to the system's trusted CA directory by running the following command:
42
+ +
43
+ [source,terminal]
44
+ ----
45
+ $ sudo mv tls.crt /etc/pki/ca-trust/source/anchors/
46
+ ----
47
+
48
+ . Enable the cluster's default certificate to trust the route by running the following command:
42
49
+
43
50
[source,terminal]
44
51
----
45
52
$ sudo update-ca-trust enable
46
53
----
47
54
48
- . Log in with podman using the default route:
55
+ . Log in with podman using the default route by running the following command :
49
56
+
50
57
[source,terminal]
51
58
----
You can’t perform that action at this time.
0 commit comments