From ba5cb81f053933185270d3bc8ce2b7a2ea453c69 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 9 Dec 2024 11:19:30 +1100 Subject: [PATCH 1/2] remove quite flag in Minio --- pkg/kotsadm/objects/minio_objects.go | 2 +- pkg/snapshot/filesystem_minio.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kotsadm/objects/minio_objects.go b/pkg/kotsadm/objects/minio_objects.go index 26f5a19620..efef862281 100644 --- a/pkg/kotsadm/objects/minio_objects.go +++ b/pkg/kotsadm/objects/minio_objects.go @@ -155,7 +155,7 @@ func MinioStatefulset(deployOptions types.DeployOptions, size resource.Quantity) Command: []string{ "/bin/sh", "-ce", - "minio -C /home/minio/.minio/ --quiet server /export", + "minio -C /home/minio/.minio/ server /export", }, Ports: []corev1.ContainerPort{ { diff --git a/pkg/snapshot/filesystem_minio.go b/pkg/snapshot/filesystem_minio.go index 9cac5ba903..c96051c6b9 100644 --- a/pkg/snapshot/filesystem_minio.go +++ b/pkg/snapshot/filesystem_minio.go @@ -399,7 +399,7 @@ func fileSystemMinioDeploymentResource(clientset kubernetes.Interface, secretChe MountPath: "/.minio/", }, }, - Args: []string{"--quiet", "server", "data"}, + Args: []string{"server", "data"}, LivenessProbe: &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ From 211487a1820c7fc9fcea7c6c1fb610013cd2678c Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 10 Dec 2024 09:22:46 +1100 Subject: [PATCH 2/2] collect minio logs --- pkg/supportbundle/staticspecs/defaultspec.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/supportbundle/staticspecs/defaultspec.yaml b/pkg/supportbundle/staticspecs/defaultspec.yaml index 58e3a25744..2d1c45cdd2 100644 --- a/pkg/supportbundle/staticspecs/defaultspec.yaml +++ b/pkg/supportbundle/staticspecs/defaultspec.yaml @@ -58,6 +58,11 @@ spec: name: kots/admin_console selector: - app=kotsadm-dex + - logs: + collectorName: kotsadm-minio + name: kots/admin_console + selector: + - app=kotsadm-minio - logs: collectorName: kotsadm-fs-minio name: kots/admin_console