Last active
December 17, 2024 12:07
-
-
Save jwhb/d568675892c46bc47a6640e591765b83 to your computer and use it in GitHub Desktop.
OpenShift 4: Modifying the global cluster pull secret to disable remote health reporting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# backup pull secret (for safety) | |
oc get secret/pull-secret -n openshift-config -oyaml > global-pull-secret.yaml | |
# disable insights | |
oc set data secret/pull-secret -n openshift-config \ | |
--from-file=.dockerconfigjson=<(oc extract secret/pull-secret -n openshift-config --to=- \ | |
| jq '.auths |= del(.["cloud.openshift.com"])') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenShift 4 docs: https://docs.openshift.com/container-platform/4.17/support/remote_health_monitoring/opting-out-of-remote-health-reporting.html#insights-operator-new-pull-secret_opting-out-remote-health-reporting