The Replicated KOTS Admin Console uses Minio as default persistent storage for state. MinIO stores several critical types of data, such as: application archives, support bundles, backup data.
This guide explains how to inspect and retrieve data from MinIO, which can be particularly useful when troubleshooting or when the KOTS Admin Console is unavailable.
Connect to MinIO server
kubectl exec -it sts/kotsadm-minio -- sh
mc alias set myminio http://localhost:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
View Minio System Information and Storage Usage
mc admin info myminio
● localhost:9000
Uptime: 21 hours
Version: 2024-11-07T00:52:20Z
Network: 1/1 OK
Drives: 1/1 OK
Pool: 1
┌──────┬───────────────────────┬─────────────────────┬──────────────┐
│ Pool │ Drives Usage │ Erasure stripe size │ Erasure sets │
│ 1st │ 9.6% (total: 277 GiB) │ 1 │ 1 │
└──────┴───────────────────────┴─────────────────────┴──────────────┘
3.2 MiB Used, 1 Bucket, 13 Objects
1 drive online, 0 drives offline, EC:0
List all application archives
mc ls --summarize --recursive myminio/kotsadm/
[2024-12-04 02:51:25 UTC] 250KiB STANDARD 2pjXdGcNeYbC9PLHO7yLSqGSnCD/<sequence>.tar.gz
...
Total Size: 3.2 MiB
Total Objects: 13
Retrieving and Examining Archives
cd /tmp
mc cp myminio/kotsadm/2pjXdGcNeYbC9PLHO7yLSqGSnCD/<sequence>.tar.gz .
View config values for specific application archive sequence
tar zxvf <sequence>.tar.gz
cat kotsKinds/userdata/config.yaml