mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
28 lines
1003 B
Plaintext
28 lines
1003 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * updating/updating_a_cluster/updating-cluster-cli.adoc
|
|
// * updating/updating_a_cluster/updating-cluster-rhel-compute.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="update-changing-update-server-cli_{context}"]
|
|
= Changing the update server by using the CLI
|
|
|
|
Changing the update server is optional. If you have an OpenShift Update Service (OSUS) installed and configured locally, you must set the URL for the server as the `upstream` to use the local server during updates. The default value for `upstream` is `\https://api.openshift.com/api/upgrades_info/v1/graph`.
|
|
|
|
.Procedure
|
|
|
|
* Change the `upstream` parameter value in the cluster version:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc patch clusterversion/version --patch '{"spec":{"upstream":"<update-server-url>"}}' --type=merge
|
|
----
|
|
The `<update-server-url>` variable specifies the URL for the update server.
|
|
+
|
|
.Example output
|
|
+
|
|
[source,terminal]
|
|
----
|
|
clusterversion.config.openshift.io/version patched
|
|
----
|