// Module included in the following assemblies:
//
// * post_installation_configuration/connected-to-disconnected.adoc

:_mod-docs-content-type: PROCEDURE
[id="connected-to-disconnected-restore-insights_{context}"]
= Restoring a degraded {insights-operator}

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}].

This topic describes how to recover from a degraded {insights-operator}.

.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
----

. Verify that the {insights-operator} is no longer degraded:
+
[source,terminal]
----
$ oc get co insights
----
+
.Example output
[source,terminal]
----
NAME       VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE
insights   4.5.41    True        False         False      3d
----


