Created
November 8, 2021 18:09
-
-
Save rcarrata/d5a9b9c672a302bc00ec42f19d6f32cc to your computer and use it in GitHub Desktop.
Upgrade OCP to 4.9
This file contains 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 | |
# Set up a the patch for upgrade towards 4.9 safely | |
# Check https://access.redhat.com/articles/6329921 for more information | |
oc -n openshift-config patch cm admin-acks --patch '{"data":{"ack-4.8-kube-1.22-api-removals-in-4.9":"true"}}' --type=merge | |
# Change the channel to the Fast 4.9 (Stable 4.9 not available at this moment | |
oc patch clusterversion version --type="merge" -p '{"spec":{"channel":"fast-4.9"}}' | |
# Upgrade towards the latest | |
oc adm upgrade --to-latest | |
# Upgrade Check | |
oc adm upgrade | |
# Upgrade Check Cluster Operators | |
watch -n1 oc get co |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment