Clean custom certificates data

To recreate MicroShift custom certificates upon service restart, reset them by using the microshift-cleanup-data script.

When you run the script with the --cert argument, you perform the following clean up actions:

  • Stop all MicroShift services

  • Delete all MicroShift pods

  • Delete all MicroShift certificates

Prerequisites
  • You are logged into MicroShift.

  • You have filed a support case.

Procedure
  1. Clean up the MicroShift certificates by running the microshift-cleanup-data script with the --cert argument, by entering the following command:

    $ sudo microshift-cleanup-data --cert
    Example output
    Stopping MicroShift services
    Removing MicroShift pods
    Removing MicroShift certificates
    MicroShift service was stopped
    Cleanup succeeded
    Important

    Running the script stops the MicroShift service.

  2. Restart the MicroShift service by running the following command:

    $ sudo systemctl start microshift