1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-data-cleaning-certs.adoc

50 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * microshift_troubleshooting/microshift-cleanup-data.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-data-cleaning-certs_{context}"]
= Cleaning custom certificates data
You can use the `microshift-cleanup-data` script to reset {microshift-short} custom certificates so that they are recreated when the {microshift-short} service restarts.
When you run the script with the `--cert` argument, you perform the following clean up actions:
* Stop all {microshift-short} services
* Delete all {microshift-short} pods
* Delete all {microshift-short} certificates
.Prerequisites
* You are logged into {microshift-short} as an administrator with root-user access.
* You have filed a support case.
.Procedure
. Clean up the {microshift-short} certificates by running the `microshift-cleanup-data` script with the `--cert` argument, by entering the following command:
+
[source,terminal]
----
$ sudo microshift-cleanup-data --cert
----
+
.Example output
[source,terminal]
----
Stopping MicroShift services
Removing MicroShift pods
Removing MicroShift certificates
MicroShift service was stopped
Cleanup succeeded
----
+
[IMPORTANT]
====
The {microshift-short} service is stopped after you run the script.
====
. Restart the {microshift-short} service by running the following command:
+
[source,terminal]
----
$ sudo systemctl start microshift
----