-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[enterprise-4.12] OSDOCS-17072-batch2 #101862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,9 +60,17 @@ $ sudo cp ca.crt /etc/pki/ca-trust/source/anchors/externalroute.crt && sudo upd | |
| [source,terminal] | ||
| ---- | ||
| $ oc get route -n openshift-image-registry | ||
| ---- | ||
| + | ||
| .Example output | ||
| [source,terminal] | ||
| ---- | ||
| NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD | ||
| default-route <registry_path> image-registry <all> reencrypt None | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker login <registry_path> -u kubeadmin -p $(oc whoami -t) | ||
| ---- | ||
|
|
||
|
|
@@ -71,9 +79,15 @@ $ docker login <registry_path> -u kubeadmin -p $(oc whoami -t) | |
| [source,terminal] | ||
| ---- | ||
| $ docker pull registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker tag registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker push <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
| ---- | ||
|
|
||
|
|
@@ -84,7 +98,6 @@ $ docker push <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | |
| $ export ODO_BOOTSTRAPPER_IMAGE=<registry_path>/openshiftdo/odo-init-image-rhel7:1.0.1 | ||
| ---- | ||
|
|
||
|
|
||
| [id="pushing-the-init-image-directly-on-macos_{context}"] | ||
|
|
||
| == Pushing the init image directly on MacOS | ||
|
|
@@ -106,7 +119,7 @@ $ oc get secret router-certs-default -n openshift-ingress -o yaml | |
| ---- | ||
| + | ||
| .Example output | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| apiVersion: v1 | ||
| data: | ||
|
|
@@ -137,9 +150,17 @@ $ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.ke | |
| [source,terminal] | ||
| ---- | ||
| $ oc get route -n openshift-image-registry | ||
| ----- | ||
| + | ||
| .Example output | ||
| [source,terminal] | ||
| ---- | ||
| NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD | ||
| default-route <registry_path> image-registry <all> reencrypt None | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker login <registry_path> -u kubeadmin -p $(oc whoami -t) | ||
| ---- | ||
|
|
||
|
|
@@ -148,9 +169,15 @@ $ docker login <registry_path> -u kubeadmin -p $(oc whoami -t) | |
| [source,terminal] | ||
| ---- | ||
| $ docker pull registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker tag registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception. |
||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ docker push <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception. |
||
| ---- | ||
|
|
||
|
|
@@ -170,20 +197,20 @@ $ export ODO_BOOTSTRAPPER_IMAGE=<registry_path>/openshiftdo/odo-init-image-rhel7 | |
|
|
||
| . Enable the default route: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> oc patch configs.imageregistry.operator.openshift.io cluster -p '{"spec":{"defaultRoute":true}}' --type='merge' -n openshift-image-registry | ||
| ---- | ||
|
|
||
| . Get a wildcard route CA: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> oc get secret router-certs-default -n openshift-ingress -o yaml | ||
| ---- | ||
| + | ||
| .Example output | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| apiVersion: v1 | ||
| data: | ||
|
|
@@ -197,43 +224,57 @@ type: kubernetes.io/tls | |
|
|
||
| . Use `base64` to encode the root certification authority (CA) content of your mirror registry: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> echo <tls.crt> | base64 --decode > ca.crt | ||
| ---- | ||
|
|
||
| . As an administrator, trust a CA in your client platform by executing the following command: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\WINDOWS\system32> certutil -addstore -f "ROOT" ca.crt | ||
| ---- | ||
|
|
||
| . Log in to the {product-registry}: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> oc get route -n openshift-image-registry | ||
| ---- | ||
| + | ||
| .Example output | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD | ||
| default-route <registry_path> image-registry <all> reencrypt None | ||
| ---- | ||
| + | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> docker login <registry_path> -u kubeadmin -p $(oc whoami -t) | ||
| ---- | ||
|
|
||
| . Push the `odo` init image: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> docker pull registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> | ||
| ---- | ||
| + | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> docker tag registry.access.redhat.com/openshiftdo/odo-init-image-rhel7:<tag> <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception. |
||
| ---- | ||
| + | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> docker push <registry_path>/openshiftdo/odo-init-image-rhel7:<tag> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception. |
||
| ---- | ||
|
|
||
| . Override the default `odo` init image path by setting the `ODO_BOOTSTRAPPER_IMAGE` environment variable: | ||
| + | ||
| [source,terminal] | ||
| [source,terminal,subs="attributes+"] | ||
| ---- | ||
| PS C:\> $env:ODO_BOOTSTRAPPER_IMAGE="<registry_path>/openshiftdo/odo-init-image-rhel7:<tag>" | ||
| ---- | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [error] OpenShiftAsciiDoc.SuggestAttribute: Use the AsciiDoc attribute '{odo-title}' rather than the plain text product term 'odo', unless your use case is an exception.