2021-09-14 15:49:27 -04:00
// Module included in the following assemblies:
//
// * post_installation_configuration/connected-to-disconnected.adoc
2023-10-30 10:13:25 -04:00
:_mod-docs-content-type: PROCEDURE
2021-09-14 15:49:27 -04:00
[id="connected-to-disconnected-restore-insights_{context}"]
2025-10-27 14:29:34 -04:00
= Restoring a degraded {insights-operator}
2021-09-14 15:49:27 -04:00
2025-10-27 14:29:34 -04:00
Disconnecting the cluster from the network necessarily causes the cluster to lose the Internet connection. The {insights-operator} becomes degraded because it requires access to link:https://console.redhat.com[{red-hat-lightspeed}].
2021-09-14 15:49:27 -04:00
2025-10-27 14:29:34 -04:00
This topic describes how to recover from a degraded {insights-operator}.
2021-09-14 15:49:27 -04:00
.Procedure
. Edit your `.dockerconfigjson` file to remove the `cloud.openshift.com` entry, for example:
+
[source,terminal]
----
"cloud.openshift.com":{"auth":"<hash>","email":"user@example.com"}
----
. Save the file.
. Update the cluster secret with the edited `.dockerconfigjson` file:
+
[source,terminal]
----
$ oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=./.dockerconfigjson
----
2025-10-27 14:29:34 -04:00
. Verify that the {insights-operator} is no longer degraded:
2021-09-14 15:49:27 -04:00
+
[source,terminal]
----
$ oc get co insights
----
+
.Example output
[source,terminal]
----
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
insights 4.5.41 True False False 3d
----