|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * support/insights-operator/enabling-remote-health-reporting.adoc |
| 4 | + |
| 5 | +[id="insights-operator-new-pull-secret-enable_{context}"] |
| 6 | += Modifying your global cluster pull secret to enable remote health reporting |
| 7 | + |
| 8 | +You can modify your existing global cluster pull secret to enable remote health reporting. If you have previously disabled remote health monitoring, you must first download a new pull secret with your `cloud.openshift.com` access token from Red Hat OpenShift Cluster Manager. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* Access to the cluster as a user with the `cluster-admin` role. |
| 13 | +* Access to Red Hat OpenShift Cluster Manager. |
| 14 | + |
| 15 | +.Procedure |
| 16 | + |
| 17 | +. Navigate to link:https://console.redhat.com/openshift/downloads[https://console.redhat.com/openshift/downloads]. |
| 18 | +. From *Tokens* -> *Pull Secret*, click *Download*. |
| 19 | ++ |
| 20 | +The file `pull-secret.txt` containing your `cloud.openshift.com` access token in JSON format downloads: |
| 21 | ++ |
| 22 | +[source,json,subs="+quotes"] |
| 23 | +---- |
| 24 | +{ |
| 25 | + "auths": { |
| 26 | + "cloud.openshift.com": { |
| 27 | + "auth": "_<your_token>_", |
| 28 | + "email": "_<email_address>_" |
| 29 | + } |
| 30 | +} |
| 31 | +---- |
| 32 | + |
| 33 | +. Download the global cluster pull secret to your local file system. |
| 34 | ++ |
| 35 | +[source,terminal] |
| 36 | +---- |
| 37 | +$ oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' > pull-secret |
| 38 | +---- |
| 39 | +. Make a backup copy of your pull secret. |
| 40 | ++ |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +$ cp pull-secret pull-secret-backup |
| 44 | +---- |
| 45 | +. Open the `pull-secret` file in a text editor. |
| 46 | +. Append the `cloud.openshift.com` JSON entry from `pull-secret.txt` into `auths`. |
| 47 | +. Save the file. |
| 48 | +. Update the secret in your cluster. |
| 49 | ++ |
| 50 | +[source,terminal] |
| 51 | +---- |
| 52 | +oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=pull-secret |
| 53 | +---- |
| 54 | + |
| 55 | +It may take several minutes for the secret to update and your cluster to begin reporting. |
| 56 | + |
| 57 | +.Verification |
| 58 | + |
| 59 | +. Navigate to the {product-title} Web Console Overview page. |
| 60 | +. *Insights* in the *Status* tile reports the number of issues found. |
0 commit comments