5.3. Opting out of Telemetry for MicroShift
If your cluster is not connected to a network, or you do not want Telemetry gathered, you can easily opt out of Telemetry by disabling the parameter in the MicroShift configuration file.
Prerequisties
-
You installed OpenShift CLI (
oc). - You have root access to the cluster.
Procedure
-
If you have not done so, make a copy of the provided
config.yaml.defaultfile in the/etc/microshift/directory, renaming itconfig.yaml. Keep the new MicroShift
config.yamlin the/etc/microshift/directory. Yourconfig.yamlfile is read every time the MicroShift service starts.注記After you create it, the
config.yamlfile takes precedence over built-in settings.- Optional: Use a configuration snippet if you are using an existing MicroShift YAML. See "Using configuration snippets" in the Additional resources section for more information.
Set the
telemetry.statussection of the MicroShift YAML with theDisabledvalue.Example disabled Telemetry configuration
apiServer: # ... telemetry: endpoint: https://infogw.api.openshift.com status: Disabled # ...