If the MinIO pod that is deployed as part of the KOTS admin console runs out of storage we can free up some space by scaling down the kotsadm-minio statefulset and deleting the kotsadm-minio pvc.
Please note that this will clear the version history from the admin console, only proceed if this is acceptable for your instance.
-
First you will want to save your application’s config file. This can be found in the admin console under the “view files” tab, it is the:
upstream/userdata/config.yaml
file.
The config will be used again later when it’s time to reinstall the application. -
Remove the application reference by running:
kubectl kots remove <app-slug> -n <namespace> -f
-
Scale down MinIO:
kubectl scale statefulset kotsadm-minio --replicas=0 -n <namespace>
-
Delete the MinIO PVC:
kubectl delete pvc kotsadm-minio-kotsadm-minio-0 -n <namespace>
-
Scale up MinIO:
kubectl scale statefulset kotsadm-minio --replicas=1 -n <namespace>
-
Now the application can be reinstalled, this can be done via the cli or ui.
Installing via the CLI:
Reinstalling the application via the CLI can be done with the following command:
kubectl kots install <app-slug> --license-file <license.yaml> --namespace <namespace> --config-values <config-values.yaml>
This is where we can provide the application’s configuration that was saved in step 1.
For more information on kots install see:
Installing via the UI:
If the application is being reinstalled via the ui it is recommended to delete the current kotsadm pod first.
- Find the current kotsadm pod name:
kubectl get pods -n <namespace>
- Delete the pod:
kubectl delete pod <kotsadm-pod-name> -n <namespace>
- Command to access admin console (if needed):
kubectl kots admin-console -n <namespace>
and continue the installation through the admin console. - The application’s config values will have to be entered manually via the ui.