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

[release-1.25] Tunnel authorizer sets port before Kubelet is ready #7054

Closed
brandond opened this issue Mar 10, 2023 · 1 comment
Closed

[release-1.25] Tunnel authorizer sets port before Kubelet is ready #7054

brandond opened this issue Mar 10, 2023 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

@mdrahman-suse
Copy link

mdrahman-suse commented Mar 23, 2023

Validated on version v1.25.8-rc2+k3s1

Environment Details

Infrastructure

  • Cloud
  • Hosted

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

Linux 5.15.0-1026-aws #30-Ubuntu SMP Wed Nov 23 14:15:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 22.04.1 LTS"

Cluster Configuration:

1 server

Config.yaml:

write-kubeconfig-mode: 644
cluster-init: true

Testing Steps

  1. Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
  1. Install k3s
  2. Ensure cluster is up
  3. Check log for default port 10250
  4. Update /etc/rancher/k3s/config.yaml by adding below
kubelet-arg:
  - port=11250
  1. Restart k3s
  2. Check log for updated port

Replication Results:

  • k3s version used for replication:
k3s version v1.25.7+k3s1 (f7c20e23)
go version go1.19.6
  • Default port before restart
$ sudo journalctl -u k3s | grep -i Tunnel
...
Mar 23 17:05:22 ip-172-31-34-37 k3s[1628]: time="2023-03-23T17:05:22Z" level=info msg="Tunnel authorizer set Kubelet Port 10250"
  • Kubelet Port was not updated after restart
$ sudo journalctl -u k3s | grep -i Tunnel
...
Mar 23 17:09:04 ip-172-31-34-37 k3s[4103]: time="2023-03-23T17:09:04Z" level=info msg="Tunnel authorizer set Kubelet Port 10250"

Validation Results:

  • k3s version used for validation:
k3s version v1.25.8-rc2+k3s1 (6c5ac022)
go version go1.19.7
  • Default port before restart
$  sudo journalctl -u k3s | grep -i Tunnel
...
Mar 23 17:38:29 ip-172-31-34-37 k3s[5930]: time="2023-03-23T17:38:29Z" level=info msg="Tunnel authorizer set Kubelet Port 10250"
  • Kubelet Port is updated after restart
$  sudo journalctl -u k3s | grep -i Tunnel
...
Mar 23 17:42:04 ip-172-31-34-37 k3s[8366]: time="2023-03-23T17:42:04Z" level=info msg="Tunnel authorizer set Kubelet Port 11250"

@github-project-automation github-project-automation bot moved this from To Test to Done Issue in K3s Development Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants