From 17b449e78a6713b382173a7187a46ff1484c5a8a Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 9 Dec 2024 12:01:04 +1100 Subject: [PATCH 1/3] collect minio logs --- in-cluster/default.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 509f1be..42bb879 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -168,6 +168,23 @@ spec: name: kots/rqlite/logs selector: - app=kotsadm-rqlite + - logs: + collectorName: minio-logs + name: kots/minio/logs + selector: + - app=kotsadm-minio + - exec: + collectorName: minio-ls + command: + - /usr/bin/mc + args: + - ls + - --summarize + - --recursive + - --json + - /export/kotsadm + selector: + - app=kotsadm-minio - logs: collectorName: weave-net selector: From 75767f9ddcb098e347e4fb03126e4ff71cdc803c Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 10 Dec 2024 09:31:28 +1100 Subject: [PATCH 2/3] add exec for minio-fs --- in-cluster/default.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 42bb879..4642a4a 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -185,6 +185,18 @@ spec: - /export/kotsadm selector: - app=kotsadm-minio + - exec: + collectorName: minio-fs-ls + command: + - /usr/bin/mc + args: + - ls + - --summarize + - --recursive + - --json + - /data + selector: + - app=kotsadm-fs-minio - logs: collectorName: weave-net selector: From 59bdf952b563b09604a216ffffdce95bc14c7918 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 10 Dec 2024 16:13:06 +1100 Subject: [PATCH 3/3] add mc admin info --- in-cluster/default.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 4642a4a..9d158a3 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -185,6 +185,15 @@ spec: - /export/kotsadm selector: - app=kotsadm-minio + - exec: + collectorName: minio-admin-info + command: + - /bin/sh + args: + - -c + - "mc alias set myminio http://localhost:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY > /dev/null 2>&1 && mc admin info myminio --json" + selector: + - app=kotsadm-minio - exec: collectorName: minio-fs-ls command: