Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: collect minio logs #108

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions in-cluster/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,44 @@ spec:
name: kots/rqlite/logs
selector:
- app=kotsadm-rqlite
- logs:
collectorName: minio-logs
name: kots/minio/logs
selector:
- app=kotsadm-minio
- exec:
Copy link
Member

@hedge-sparrow hedge-sparrow Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this exec collector seems useful, could we get this added for the non kotsadm-minio as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @hedge-sparrow, do you mean the minio-fs for hostpath snapshot? I've updated the spec accordingly.

collectorName: minio-ls
command:
- /usr/bin/mc
args:
- ls
- --summarize
- --recursive
- --json
- /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:
- /usr/bin/mc
args:
- ls
- --summarize
- --recursive
- --json
- /data
selector:
- app=kotsadm-fs-minio
- logs:
collectorName: weave-net
selector:
Expand Down
Loading