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-rosa-proxy-remove-cli.adoc
2025-09-24 15:38:31 +00:00

103 lines
3.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * networking/enable-cluster-wide-proxy.adoc
:_mod-docs-content-type: PROCEDURE
[id="nw-rosa-proxy-remove-cli_{context}"]
= Removing the cluster-wide proxy using CLI
You must use the ROSA CLI, `rosa`, to remove the proxy's address from your cluster.
.Prerequisites
* You must have cluster administrator privileges.
* You have installed the ROSA CLI (`rosa`).
.Procedure
* Use the `rosa edit` command to modify the proxy. You must pass empty strings to the `--http-proxy` and `--https-proxy` arguments to clear the proxy from the cluster:
+
[source,terminal]
----
$ rosa edit cluster -c <cluster_name> --http-proxy "" --https-proxy ""
----
+
[NOTE]
====
While your proxy might only use one of the proxy arguments, the empty fields are ignored, so passing empty strings to both the `--http-proxy` and `--https-proxy` arguments does not cause any issues.
====
+
.Example Output
+
[source,yaml]
----
I: Updated cluster <cluster_name>
----
.Verification
* You can verify that the proxy has been removed from the cluster by using the `rosa describe` command:
+
[source,yaml]
----
$ rosa describe cluster -c <cluster_name>
----
+
Before removal, the proxy IP displays in a proxy section:
+
[source,yaml,subs="attributes+"]
----
Name: <cluster_name>
ID: <cluster_internal_id>
External ID: <cluster_external_id>
OpenShift Version: {product-version}.0
Channel Group: stable
DNS: <dns>
AWS Account: <aws_account_id>
API URL: <api_url>
Console URL: <console_url>
Region: us-east-1
Multi-AZ: false
Nodes:
- Control plane: 3
- Infra: 2
- Compute: 2
Network:
- Type: OVNKubernetes
- Service CIDR: <service_cidr>
- Machine CIDR: <machine_cidr>
- Pod CIDR: <pod_cidr>
- Host Prefix: <host_prefix>
Proxy:
- HTTPProxy: <proxy_url>
Additional trust bundle: REDACTED
----
+
After removing the proxy, the proxy section is removed:
+
[source,yaml,subs="attributes+"]
----
Name: <cluster_name>
ID: <cluster_internal_id>
External ID: <cluster_external_id>
OpenShift Version: {product-version}.0
Channel Group: stable
DNS: <dns>
AWS Account: <aws_account_id>
API URL: <api_url>
Console URL: <console_url>
Region: us-east-1
Multi-AZ: false
Nodes:
- Control plane: 3
- Infra: 2
- Compute: 2
Network:
- Type: OVNKubernetes
- Service CIDR: <service_cidr>
- Machine CIDR: <machine_cidr>
- Pod CIDR: <pod_cidr>
- Host Prefix: <host_prefix>
Additional trust bundle: REDACTED
----