Skip to content

How do i get debug logs out of etcd? #10167

Closed Answered by Hobbit44
Hobbit44 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok. i managed to get it solved but it was a faff. @smira So your aware. (for context im trying to move from HA to single CP)

In the end i had to to overwrite the k0s config by adding the following to /etc/k0s/k0s.yaml. Matching the ips for the control plane nodes. In my case i have 3, with ips ending in 31,32, and 33:

spec:
  storage:
    etcd:
      extraArgs:
        initial-advertise-peer-urls: https://10.0.1.31:2380
        advertise-client-urls: http://10.0.1.31:2379
        listen-client-urls: https://0.0.0.0:2379
        listen-peer-urls: https://0.0.0.0:2380

Then run systemctl restart k0scontroller to restart the node and etcd. You can then watch the logs with journalctl -u k0sco…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Hobbit44
Comment options

@smira
Comment options

@Hobbit44
Comment options

@smira
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Hobbit44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants