Skip to content

Instantly share code, notes, and snippets.

@jwhb
Last active December 17, 2024 12:07
Show Gist options
  • Save jwhb/d568675892c46bc47a6640e591765b83 to your computer and use it in GitHub Desktop.
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
#!/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