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

[EKS] [Managed Workers]: Send kubelet logs to CloudWatch #903

Closed
aaron-trout opened this issue May 19, 2020 · 8 comments
Closed

[EKS] [Managed Workers]: Send kubelet logs to CloudWatch #903

aaron-trout opened this issue May 19, 2020 · 8 comments
Labels
EKS Managed Nodes EKS Managed Nodes EKS Amazon Elastic Kubernetes Service Proposed Community submitted issue

Comments

@aaron-trout
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request
Would be great for kubelet / other managed worker node logs to be sent to CloudWatch.

Which service(s) is this request for?
EKS (Managed worker nodes)

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Developers are already using the control plane logs (specifically the audit log) to assist in debugging, but occasionally the platform team has to step in and SSH into worker nodes to pull kubelet logs.

It would be super helpful if these were sent to CloudWatch like the control plane logs.

Are you currently working around this issue?
Workaround is to just SSH to the worker node, but obviously this has some limitations, for example when using cluster-autoscaler the node might not live for very long.

@aaron-trout aaron-trout added the Proposed Community submitted issue label May 19, 2020
@mikestef9 mikestef9 added EKS Amazon Elastic Kubernetes Service EKS Managed Nodes EKS Managed Nodes labels May 19, 2020
@tpsk-hub
Copy link

tpsk-hub commented Jan 26, 2021

Hi Folks,

We now have the ability to solve the above ask. Check out this blog to learn more - https://aws.amazon.com/blogs/containers/fluent-bit-integration-in-cloudwatch-container-insights-for-eks/

@roberto-civitas
Copy link

I dont see how that addresses the above

@deepankarm
Copy link

Would be great for kubelet / other managed worker node logs to be sent to CloudWatch.

Is this already doable?

@joeynaor
Copy link

When had an EKS node unexpectedly changing its status to notReady. As far as I understand, the only way to find out the reason behind (beside running kubectl describe <node> at the time of failure) this is by checking kubelet logs (journalctl -u kubelet), which in our case rotated out. Being able to log these conveniently is a must for RCA purposes.

@michaelswierszcz
Copy link

same situation happened with us recently

When had an EKS node unexpectedly changing its status to notReady. As far as I understand, the only way to find out the reason behind (beside running kubectl describe <node> at the time of failure) this is by checking kubelet logs (journalctl -u kubelet), which in our case rotated out. Being able to log these conveniently is a must for RCA purposes.

@tooptoop4
Copy link

did u solve @joeynaor @michaelswierszcz ? i'm thinking related to aws/amazon-vpc-cni-k8s#2808

@michaelswierszcz
Copy link

ended up scraping kubelet logs with our exists logging infrastructure (fluent-bit -> loki)

@joeynaor
Copy link

@tooptoop4 Our workaround was to disable "delete on terminate" for the EKS nodes disks. After an incident, we mounted the disk of the faulty node to a regular EC2 instance and inspected the logs. In our case, the only incident ever since was caused by a hardware failure on AWS side, confirmed by AWS support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EKS Managed Nodes EKS Managed Nodes EKS Amazon Elastic Kubernetes Service Proposed Community submitted issue
Projects
None yet
Development

No branches or pull requests

8 participants