-
Notifications
You must be signed in to change notification settings - Fork 375
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
kube-router failed to start when installation with default settings #4411
Comments
I ran into this as well. Seems like our integration test is broken and did not catch this. |
The actual fix in #4421 will not be backported beyond 1.30. Versions prior to 1.30 will be operational, even with the metrics port clash, as kube-router 1.x will simply log an error about not being able to bind the metrics port, and continue to work. Kube-router metrics can't be retrieved in those clusters unless kube-routers metrics port gets changed to something else in the k0s config. The test changes from #4419 will be backported, though. They will prove that k0s will be operational with the default --single configuration, and will catch regressions early. |
Before creating an issue, make sure you've checked the following:
Platform
Version
v1.30.0+k0s.0
Sysinfo
`k0s sysinfo`
What happened?
Install a single node cluster following the guide.
bizhao@ubuntu22:
$ curl -sSLf https://get.k0s.sh | sudo sh$ sudo k0s install controller --singleDownloading k0s from URL: https://github.com/k0sproject/k0s/releases/download/v1.30.0+k0s.0/k0s-v1.30.0+k0s.0-amd64
k0s is now executable in /usr/local/bin
bizhao@ubuntu22:
bizhao@ubuntu22:
$ sudo k0s start$ sudo k0s statusbizhao@ubuntu22:
Version: v1.30.0+k0s.0
Process ID: 1651
Role: controller
Workloads: true
SingleNode: true
Kube-api probing successful: true
Kube-api probing last error:
bizhao@ubuntu22:
$ sudo k0s kubectl get nodes$ sudo k0s kubectl get pods -ANAME STATUS ROLES AGE VERSION
ubuntu22 Ready control-plane 47s v1.30.0+k0s
bizhao@ubuntu22:
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system kube-proxy-pb696 1/1 Running 0 52s
kube-system metrics-server-5cd4986bbc-mf9f4 0/1 ContainerCreating 0 53s
kube-system coredns-85c69f454c-tcnc6 0/1 ContainerCreating 0 53s
kube-system kube-router-wnmtw 0/1 CrashLoopBackOff 2 (22s ago) 52s
sudo k0s kubectl logs kube-router-wnmtw -n kube-system
Defaulted container "kube-router" out of: kube-router, install-cni-bins (init), install-cniconf (init)
I0513 06:28:12.439110 2898 version.go:66] Running /usr/local/bin/kube-router version v2.1.0, built on 2024-03-02T15:45:54-0600, go1.21.9
failed to run kube-router: failed to listen on :8080 for metrics: unable to open :8080: listen tcp :8080: bind: address already in use
bizhao@ubuntu22:~$ sudo lsof -i -P -n | grep 8080
kine 1660 kube-apiserver 10u IPv4 25963 0t0 TCP *:8080 (LISTEN)
Steps to reproduce
Expected behavior
All pods should start successfully
Actual behavior
kube-router cannot be started due to port conflicts.
Screenshots and logs
No response
Additional context
I changed the metricsPort from 8080 to 8090 and re-install k0s.
All pods are successfully started.
Looks like both kine and kube-router is trying to use 8080.
The text was updated successfully, but these errors were encountered: