Skip to content

Instantly share code, notes, and snippets.

View AlienResidents's full-sized avatar

Chris Donovan AlienResidents

  • Melbourne, VIC
View GitHub Profile
@AlienResidents
AlienResidents / gist:02ec2ae62d4d49c722e55c14cc339ee8
Last active October 12, 2023 12:53
kubectl logs - 405 method not allowed
So, this happened. Shirley I must be missing something!
I was unable to see k8s logs with "kubectl logs". I was running a single node cluster Ubuntu 20.04.3.
I initially started out with 1.27, and then upgraded to 1.28.
Somehow over at least 4 server "shutdown -r now"'s, the issue of not being able to read logs with kubectl persisted.
This was my error. I use coredns as an easy obfuscation method.
I asked for help on the Kubernetes Slack channel, and @liptan has been helping me out so far.