Disabling IPsec encryption for an external IPsec endpoint
To stop encrypting traffic to an external host in Red Hat OpenShift Container Platform, you can remove the IPsec tunnel configuration from your cluster nodes.
Prerequisites
-
Install the OpenShift CLI (
oc). -
You are logged in to the cluster as a user with
cluster-adminprivileges. -
You enabled IPsec in either
FullorExternalmode on your cluster.
Procedure
-
Create a file named
remove-ipsec-tunnel.yamlwith the following YAML:kind: NodeNetworkConfigurationPolicy apiVersion: nmstate.io/v1 metadata: name: <name> spec: nodeSelector: kubernetes.io/hostname: <node_name> desiredState: interfaces: - name: <tunnel_name> type: ipsec state: absentwhere:
name-
Specifies a name for the node network configuration policy.
node_name-
Specifies the name of the node where the IPsec tunnel that you want to remove exists.
tunnel_name-
Specifies the interface name for the existing IPsec tunnel.
-
To remove the IPsec tunnel, enter the following command:
$ oc apply -f remove-ipsec-tunnel.yaml