Disabling IPsec encryption
To disable IPsec encryption in Red Hat OpenShift Container Platform, you can patch the cluster Network custom resource and set ipsecConfig mode to Disabled.
-
You installed the OpenShift CLI (
oc). -
You logged in to the cluster with a user with
cluster-adminprivileges.
-
Choose one of the following options to disable IPsec encryption:
-
Where the
ipsecConfig.modeparameter is set to eitherExternalorFulland theipsecConfig.fullschema is not added tonetworks.operator.openshift.io, enter the following command:$ oc patch networks.operator.openshift.io cluster --type=merge -p \ '{ "spec":{ "defaultNetwork":{ "ovnKubernetesConfig":{ "ipsecConfig":{ "mode":"Disabled" }}}}}' -
Where the
ipsecConfig.modeparameter is set toFulland theipsecConfig.fullconfiguration is added tonetworks.operator.openshift.io, enter the following command:$ oc patch networks.operator.openshift.io cluster --type='json' -p \ '[{"op": "remove", "path": "/spec/defaultNetwork/ovnKubernetesConfig/ipsecConfig/full"}, {"op": "replace", "path": "/spec/defaultNetwork/ovnKubernetesConfig/ipsecConfig/mode", "value": "Disabled"}]'
-
-
Optional: You can increase the size of your cluster MTU by
46bytes because there is no longer any overhead from the IPsec Encapsulating Security Payload (ESP) header in IP packets.