The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

4.8.2 Modifying Access to CIDR Blocks

If you have a Kubernetes module that has CIDR blocks configured to be allowed, you can modify this configuration using the --restrict-service-externalip-cidrs option of the olcnectl module update command. This allows you to change the CIDRS that are configured. For example, to set the CIDR block that can be accessed to 192.0.2.0/24 for an existing Kubernetes module:

$ olcnectl --api-server 127.0.0.1:8091 module update \
  --environment-name myenvironment \
  --name mycluster \
  --restrict-service-externalip-cidrs=192.0.2.0/24

To remove access to any CIDR blocks, which means no access to externalIPs is allowed, set --restrict-service-externalip-cidrs option to null, for example:

$ olcnectl --api-server 127.0.0.1:8091 module update \
  --environment-name myenvironment \
  --name mycluster \
  --restrict-service-externalip-cidrs=""