Last active
April 24, 2023 19:56
-
-
Save jkeam/5d64554e7a47bcbc8dabc79b82c33306 to your computer and use it in GitHub Desktop.
Update certs in OpenShift
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/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