Importing simple content access entitlements with {insights-operator}
Insights Operator periodically imports your simple content access entitlements from OpenShift Cluster Manager and stores them in the etc-pki-entitlement secret in the openshift-config-managed namespace. Simple content access is a capability in Red Hat subscription tools that simplifies the behavior of the entitlement tooling. This feature makes it easier to consume the content provided by your Red Hat subscriptions without the complexity of configuring subscription tooling.
Note
Previously, a cluster administrator would create or edit the Insights Operator configuration using a support secret in the openshift-config namespace. Red Hat Lightspeed now supports the creation of a ConfigMap object to configure the Insights Operator. The Insights Operator gives preference to the config map configuration over the support secret if both exist.
The Insights Operator imports simple content access entitlements every eight hours, but can be configured or disabled using the insights-config ConfigMap object in the openshift-insights namespace.
Note
Simple content access must be enabled in Red Hat Subscription Management for the importing to function.
Configuring simple content access import interval
You can configure how often the Insights Operator imports the simple content access (sca) entitlements by using the insights-config ConfigMap object in the openshift-insights namespace. The entitlement import normally occurs every eight hours, but you can shorten this sca interval if you update your simple content access configuration in the insights-config ConfigMap object.
This procedure describes how to update the import interval to two hours (2h). You can specify hours (h) or hours and minutes, for example: 2h30m.
-
Remote health reporting is enabled, which is the default.
-
You are logged in to the OpenShift Container Platform web console as a user with the
cluster-adminrole. -
The insights-config
ConfigMapobject exists in theopenshift-insightsnamespace.
-
Go to Workloads → ConfigMaps and select Project: openshift-insights.
-
Click on the insights-config
ConfigMapobject to open it. -
Click Actions and select Edit ConfigMap.
-
Click the YAML view radio button.
-
Set the
scaattribute in the file tointerval: 2hto import content every two hours.apiVersion: v1 kind: ConfigMap # ... data: config.yaml: | sca: interval: 2h # ... -
Click Save. The insights-config config-map details page opens.
-
Verify that the value of the
config.yamlscaattribute is set tointerval: 2h.
Disabling simple content access import
You can disable the importing of simple content access entitlements by using the insights-config ConfigMap object in the openshift-insights namespace.
-
Remote health reporting is enabled, which is the default.
-
You are logged in to the OpenShift Container Platform web console as
cluster-admin. -
The insights-config
ConfigMapobject exists in theopenshift-insightsnamespace.
-
Go to Workloads → ConfigMaps and select Project: openshift-insights.
-
Click on the insights-config
ConfigMapobject to open it. -
Click Actions and select Edit ConfigMap.
-
Click the YAML view radio button.
-
In the file, set the
scaattribute todisabled: true.apiVersion: v1 kind: ConfigMap # ... data: config.yaml: | sca: disabled: true # ... -
Click Save. The insights-config config-map details page opens.
-
Verify that the value of the
config.yamlscaattribute is set todisabled: true.
Enabling a previously disabled simple content access import
If the importing of simple content access entitlements is disabled, the Insights Operator does not import simple content access entitlements. You can change this behavior.
-
Remote health reporting is enabled, which is the default.
-
You are logged in to the OpenShift Container Platform web console as a user with the
cluster-adminrole. -
The insights-config
ConfigMapobject exists in theopenshift-insightsnamespace.
-
Go to Workloads → ConfigMaps and select Project: openshift-insights.
-
Click on the insights-config
ConfigMapobject to open it. -
Click Actions and select Edit ConfigMap.
-
Click the YAML view radio button.
-
In the file, set the
scaattribute todisabled: false.apiVersion: v1 kind: ConfigMap # ... data: config.yaml: | sca: disabled: false # ... -
Click Save. The insights-config config-map details page opens.
-
Verify that the value of the
config.yamlscaattribute is set todisabled: false.