1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/nw-proxy-remove.adoc
2023-10-30 10:13:25 -04:00

36 lines
753 B
Plaintext

// Module included in the following assemblies:
//
// * networking/enable-cluster-wide-proxy.adoc
:_mod-docs-content-type: PROCEDURE
[id="nw-proxy-remove_{context}"]
= Removing the cluster-wide proxy
The `cluster` Proxy object cannot be deleted. To remove the proxy from a cluster, remove all `spec` fields from the Proxy object.
.Prerequisites
* Cluster administrator permissions
* {product-title} `oc` CLI tool installed
.Procedure
. Use the `oc edit` command to modify the proxy:
+
[source,terminal]
----
$ oc edit proxy/cluster
----
. Remove all `spec` fields from the Proxy object. For example:
+
[source,yaml]
----
apiVersion: config.openshift.io/v1
kind: Proxy
metadata:
name: cluster
spec: {}
----
. Save the file to apply the changes.