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
1717
1818To expose the registry using the `defaultRoute` :
1919
20- . Set `defaultRoute` to `true` :
20+ . Set `defaultRoute` to `true` by running the following command :
2121+
2222[source,terminal]
2323----
2424$ oc patch configs.imageregistry.operator.openshift.io/cluster -- patch '{"spec":{"defaultRoute":true}}' -- type=merge
2525----
2626+
27- . Get the default registry route:
27+ . Get the default registry route by running the following command :
2828+
2929[source,terminal]
3030----
3131$ HOST=$(oc get route default-route -n openshift-image-registry -- template='{{ .spec.host }}' )
3232----
3333
34- . Get the certificate of the Ingress Operator:
34+ . Get the certificate of the Ingress Operator by running the following command :
3535+
3636[source,terminal]
3737----
3838$ 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
3939----
4040
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:
4249+
4350[source,terminal]
4451----
4552$ sudo update-ca-trust enable
4653----
4754
48- . Log in with podman using the default route:
55+ . Log in with podman using the default route by running the following command :
4956+
5057[source,terminal]
5158----
You can’t perform that action at this time.
0 commit comments