Restoring MicroShift networking settings to default

To remove networking customizations and return the network to default settings, stop MicroShift and run a clean-up script.

Prerequisites
  • RHEL 9 or newer.

  • MicroShift 4.14 or newer.

  • Access to the host CLI.

Procedure
  1. Stop the MicroShift service by running the following command:

    $ sudo systemctl stop microshift
  2. Stop the kubepods.slice systemd unit by running the following command:

    $ sudo systemctl stop kubepods.slice
  3. MicroShift installs a helper script to undo network changes made by OVN-K. Run the cleanup script by entering the following command:

    $ sudo /usr/bin/microshift-cleanup-data --ovn