Created
January 16, 2020 16:11
-
-
Save satishchennu1/d8ee8075bb072712fda9a89765cc5803 to your computer and use it in GitHub Desktop.
Redhat Openshift 4.2 upgrade using CLI
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
| 1. oc get clusterversion | |
| 2. review the current update channel information and confirm that your channel is set to stable-4.2: | |
| oc get clusterversion -o json|jq ".items[0].spec" | |
| { | |
| "channel": "stable-4.2", | |
| "clusterID": "990f7ab8-109b-4c95-8480-2bd1deec55ff", | |
| "upstream": "https://api.openshift.com/api/upgrades_info/v1/graph" | |
| } | |
| 3.View the available updates and note the version number of the update that you want to apply | |
| oc adm upgrade | |
| 4.To update to the latest version: | |
| oc adm upgrade --to-latest=true | |
| 5.To update to a specific version: | |
| oc adm upgrade --to=<version> | |
| oc adm upgrade --to=4.2.13 | |
| 6. Review the status of the Cluster Version Operator: | |
| oc get clusterversion -o json|jq ".items[0].spec" | |
| 7.oc get clusterversion -o json|jq ".items[0].status.history" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment