k3s-io / k3s

Lightweight Kubernetes
https://k3s.io
Apache License 2.0
27.99k stars 2.34k forks source link

K3s Version compatibility between master and agent? #3217

Closed aljohn0422 closed 1 year ago

aljohn0422 commented 3 years ago

Environmental Info: K3s Version:

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

Cluster Configuration: 1 server with 6 other running agents on other devices (including a Jetson Nano, but no other Jetson devices.)

Describe the bug: Cannot connect this agent to master. Installation script ran without any issue. But this machine is not listed in sudo k3s kubectl get node.

Steps To Reproduce:

Expected behavior: K3s agent successfully connected to master.

Actual behavior: This machine is not listed when I run sudo k3s kubectl get node on master.

Additional context / logs: When I set export INSTALL_K3S_VERSION=v1.20.0+k3s2 to install older k3s version, the agent connected successfully. It just won't connect on the latest version which is v1.20.5+k3s1.

Master is on version v1.20.0+k3s2. I have other agent nodes running on v1.20.2+k3s1, v1.20.4+k3s1, v1.20.0+k3s2 without a problem.

brandond commented 3 years ago

In general, the Kubernetes version skew policy applies: https://kubernetes.io/docs/setup/release/version-skew-policy/

In short, servers can be newer than agents, but agents should not be newer than servers.

aljohn0422 commented 3 years ago

Got it. Thanks for providing this reference!

brandond commented 3 years ago

Reopening for docs followup