TLDR: Depending on my k3s version, kubectl logs -f
drops back to the console (timeouts?) exactly after 50 seconds without new log entries, instead of remaining attached until a Ctrl-C is issued. I can't seem to find where this is configured or why it happens.
OS: Ubuntu Server 22.04 (virtual machine) with 6GB RAM that can grow up to 8GB and plenty of disk space. VM is vanilla (no weird configuration applied).
EDIT 1: @mdaniel - Network topology is the simplest case possible: Single VM with nothing explicitly configured. Default DHCP over TCPIPv4 to connect to the Internet, and internally just using default networking (both TCPIPv4 and v6 enabled as it's the default in Ubuntu Server 22.04). The default k3s installation instructions set up a single node that acts both as a controller and an agent. Again, no explicit configuration statements used during the k3s install - using defaults for everything, thus the API server and kubectl are on the same machine running locally. I am SSHing to the machine itself to use kubectl, so no external networking problems are causing the issue.
EDIT 2: I am using the kubectl binary installed alongside k3s, not using the snap.
All versions of k3s up to and including v1.23.6+k3s1 worked perfectly for me: kubectl logs -f
remains attached. From version v1.23.7+k3s1 onwards, the 50 second timeout drops me back to the console.
Note: I don't need to install anything on k3s to reproduce this - It happens even with the pods in the kube-system group on a completely new installation of a fresh VM.
This is a big issue for me, because I'm trying to run AWX which seemingly depends on this command to show me the result of my ansible playbook runs. As soon as I execute any playbook that takes longer than 50 seconds to log anything to the screen, my deployments fail without any useful information.
I have read all the release notes, man pages, Github issues and installation manuals I can - for all k3s, kubernetes and AWX, and I can't seem to find any references to this behavior. I have even searched inside the code repos in github and can't seem to find anything useful.
Does anybody have any information that can help me out? Until I can figure this out I'm stuck with k3s v1.23.6+k3s1 which is already quite old now.
Thank you for your time reading this entry.