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

Error when trying to fetch log #11181

Open
davidshen84 opened this issue Oct 27, 2024 · 3 comments
Open

Error when trying to fetch log #11181

davidshen84 opened this issue Oct 27, 2024 · 3 comments

Comments

@davidshen84
Copy link

Environmental Info:
K3s Version:

k3s version v1.30.5+k3s1 (9b586704)
go version go1.22.6

Node(s) CPU architecture, OS, and Version:

Linux xps9560 6.6.57-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Oct 17 15:43:30 -00 2024 x86_64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz GenuineIntel GNU/Linux

Cluster Configuration:
1 single node

Describe the bug:
Got this error when trying to view pod logs:

stream logs failed Get "https://172.17.0.1:10250/containerLogs/kube-system/metrics-server-cdcc87586-2vrwx/metrics-server?follow=true&tailLines=100&timestamps=true": tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, 192.168.86.27, 2400:..., not 172.17.0.1 for kube-system/ metrics-server-cdcc87586-2vrwx (metrics-server)

Steps To Reproduce:

  • Installed K3s:
  • Deploy some pods
  • Observe

Expected behavior:
Can view log at anytime

Actual behavior:
Got TLS error after some random time.

Additional context / logs:

I could view the logs just minutes ago, then when I issued the command again, I got this error. I have had these errors before, and I have to reinstall the k3s system.

@brandond
Copy link
Member

How many nodes do you have in your cluster? Are you running docker alongside k3s on these nodes? Do the nodes have multiple interfaces, and if so did you want to set --node-ip to the address of the interface you wanted it to use? For some reason the kubelet has detected a node IP of 172.17.0.1 but k3s was expecting this node to be at 192.168.86.27.

@davidshen84
Copy link
Author

davidshen84 commented Oct 29, 2024 via email

@brandond
Copy link
Member

I've not seen this happen before, but that does appear to be what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Triage
Development

No branches or pull requests

2 participants