Skip to content

fix: target kubernetes mirror pod logs#52

Open
adamhackl wants to merge 3 commits intografana:mainfrom
adamhackl:mirror-pod-logs
Open

fix: target kubernetes mirror pod logs#52
adamhackl wants to merge 3 commits intografana:mainfrom
adamhackl:mirror-pod-logs

Conversation

@adamhackl
Copy link
Contributor

Kubernetes mirror pods (kube-apiserver, kube-controller-manager, kube-scheduler, kube-vip, etcd) don't use the same directory pattern for their log files. Regular kubernetes pods work with the structure /var/log/pods/*<pod uid>/<container name>/*.log, but mirror pods use the mirror hash in place of the pod uid. This fix should use the mirror hash if the annotation is available, otherwise it uses the pod uid.

Copy link
Collaborator

@bentonam bentonam left a comment

Choose a reason for hiding this comment

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

@adamhackl thank you for the contribution

@adamhackl adamhackl requested a review from bentonam April 15, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants