@@ -75,85 +75,4 @@ content: |
75
75
host, see the documentation for `RHEL
76
76
<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-checking_the_status_of_ntp>`__.
77
77
78
- ---
79
- stepnum : 5
80
- level : 4
81
- ref : create-k8s-secret
82
- title : " **Required for OpenShift Installs:** Create a |k8s-secret| that
83
- contains credentials authorized to pull images from the
84
- ``registry.connect.redhat.com`` repository."
85
- content : |
86
-
87
- If you use the |k8s-op-short| to deploy MongoDB
88
- resources to :ref:`multiple namespaces <ns-scope-different-ns>` or with
89
- a :ref:`cluster-wide scope <cluster-wide-scope>`, create the secret
90
- only in the namespace where you intend to deploy the |k8s-op-short|. The
91
- |k8s-op-short| synchronizes the secret across all watched namespaces.
92
-
93
- a. If you have not already, obtain a Red Hat subscription.
94
-
95
- #. Create a `Registry Service Account <https://access.redhat.com/terms-based-registry/>`__.
96
-
97
- #. Click on your Registry Service Account, then click the
98
- :guilabel:`Docker Configuration` tab.
99
-
100
- #. Download the ``<account-name>-auth.json`` file and open it in a
101
- text editor.
102
-
103
- #. Copy the ``registry.redhat.io`` object, and paste another instance
104
- of this object into the file. Remember to add a comma after the
105
- first object. Rename the second object
106
- ``registry.connect.redhat.com``, then save the file:
107
-
108
- .. code-block:: json
109
- :emphasize-lines: 6-8
110
-
111
- {
112
- "auths": {
113
- "registry.redhat.io": {
114
- "auth": "<encoded-string>"
115
- },
116
- "registry.connect.redhat.com": {
117
- "auth": "<encoded-string>"
118
- }
119
- }
120
- }
121
-
122
- #. Create an ``openshift-pull-secret.yaml`` file and add the contents
123
- of the modified ``<account-name>-auth.json`` file as
124
- ``stringData`` named ``.dockerconfigjson`` to the
125
- ``openshift-pull-secret.yaml`` secret file.
126
-
127
- .. code-block:: yaml
128
- :emphasize-lines: 4-16
129
-
130
- apiVersion: v1
131
- kind: Secret
132
- metadata:
133
- name: openshift-pull-secret
134
- stringData:
135
- .dockerconfigjson: |
136
- {
137
- "auths": {
138
- "registry.redhat.io": {
139
- "auth": "<encoded-string>"
140
- },
141
- "registry.connect.redhat.com": {
142
- "auth": "<encoded-string>"
143
- }
144
- }
145
- }
146
- type: kubernetes.io/dockerconfigjson
147
-
148
- The value you provide in the ``metadata.name`` field contains
149
- the secret name. Provide this value when asked for the
150
- ``<openshift-pull-secret>``.
151
-
152
- #. Create a |k8s-secret| from the ``openshift-pull-secret.yaml``
153
- file in the same namespace in which you will deploy the |k8s-op-short|.
154
-
155
- .. code-block:: sh
156
-
157
- oc apply -f openshift-pull-secret.yaml -n <metadata.namespace>
158
-
159
78
...
0 commit comments