4.5.5.5. Re-enabling the Insights Operator periodic gather operations
If you disabled the default InsightsDataGather data gather operations, you can enable them again so that the Insights Operator resumes the periodic data collection, and sends the resulting Red Hat Lightspeed cluster reports to Red Hat.
The InsightsDataGather custom resource is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
Prerequisites
-
You are logged in to the OpenShift Container Platform web console as a user with the
cluster-adminrole.
Procedure
- Navigate to Administration > CustomResourceDefinitions.
- On the CustomResourceDefinitions page, use the Search by name field to find the InsightsDataGather custom resource definition (CRD), and click to open.
- On the CustomResourceDefinition details page, click the Instances tab.
- Click cluster, and then click the YAML tab.
Edit the
InsightsDataGatherCRD, and complete one of the following steps:To enable all disabled gather operations, under the
gatherersspecification, set themodeback to All as outlined in the following example extract:apiVersion: insights.openshift.io/v1alpha2 kind: InsightsDataGather metadata: name: cluster spec: # Gatherers configuration gatherers: mode: All # Options: All, None, CustomTo enable individual gather operations that were previously disabled, find the name of the gatherer operation under the
gatherers:custom:configskey section and change thestateto Enabled. Alternatively, under theconfigspecification, remove thenameandstateconfiguration lines for the operation you want to enable.apiVersion: insights.openshift.io/v1alpha2 kind: InsightsDataGather metadata: name: cluster spec: # Gatherers configuration gatherers: mode: Custom # Options: All, None, Custom custom: configs: # Essential cluster configuration gatherers - name: clusterconfig/authentication state: Enabled - name: clusterconfig/clusteroperators state: Enabled - name: workloads state: Enabled
Click Save.
After you save the changes, the Insights Operator gather configurations are updated and the affected gather operations start.
참고Disabling gather operations restricts the ability of the Red Hat Lightspeed advisor service to offer effective recommendations for your cluster.