- Home
- Operations Guide
- Access an MKE cluster
- Download and configure the client bundle
- Clean up expired client bundles
Clean up expired client bundles#
Available as of MKE 3.9.5 You can remove expired client bundles from MKE. This can be done manually, or you can set a schedule for automatic cleanup.
Manual cleanup of expired bundles#
-
Log in to the MKE web UI as an administrator.
-
In the left-side navigation panel, navigate to
and click Tuning. The Tuning page will display. -
Scroll down to the Client Bundle Management section.
-
Ensure that the Client Bundle Generation control is toggled on.
-
Optional. Under the Dry Run sub-heading, click Start a dry run to view the expired client bundles that will be removed.
-
Under the Run Cleanup, click Run cleanup now.
-
Click Save.
Schedule expired bundle cleanup#
You can configure MKE to automatically clean up client bundles that have expired, either by applying a parameter setting in the MKE configuration file or through the MKE web UI.
To configure the MKE configuration file for automatic cleanup of expired client bundles:
-
Obtain the current MKE configuration file for the cluster.
-
Set the value of
expired_client_bundle_cleanup_scheduleto the desired cron schedule. Refer to cluster_config table (required) for more information.The following example schedules client bundle cleanup for every day at midnight:
[cluster_config] expired_client_bundle_cleanup_schedule = "0 0 0 * * *"
To configure the MKE web UI for automatic cleanup of expired client bundles:
-
Log in to the MKE web UI as an administrator.
-
In the left-side navigation panel, navigate to
and click Tuning. The Tuning page will display. -
Scroll down to the Client Bundle Management section.
-
Ensure that the Client Bundle Generation control is toggled on.
-
Optional. Under the Dry Run sub-heading, click Start a dry run to view the expired client bundles that will be removed.
-
Under the Schedule sub-heading, enter a valid cron expression into the Cleanup Schedule field.
-
Click Save.