1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/update-changing-update-server-cli.adoc
2023-07-21 17:13:54 +00:00

28 lines
994 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
:_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
----