Skip to content

Instantly share code, notes, and snippets.

@jkeam
Last active April 24, 2023 19:56
Show Gist options
  • Save jkeam/5d64554e7a47bcbc8dabc79b82c33306 to your computer and use it in GitHub Desktop.
Save jkeam/5d64554e7a47bcbc8dabc79b82c33306 to your computer and use it in GitHub Desktop.
Update certs in OpenShift
#!/bin/bash
# delete config map
oc delete configmap custom-ca -n openshift-config
# re-create it
oc create configmap custom-ca --from-file=ca-bundle.crt=</path/to/example-ca.crt> -n openshift-config
# make sure config map is being used
oc patch proxy/cluster --type=merge --patch='{"spec":{"trustedCA":{"name":"custom-ca"}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment