kubectl version mismatch for k8s v1.23
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Undecided
|
Roman Dobosz |
Bug Description
As of October 2022, after specifying "KURYR_
```
$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.25.2
Kustomize Version: v4.5.7
Server Version: v1.23.12
WARNING: version difference between client (1.25) and server (1.23) exceeds the supported minor version skew of +/-1
```
As shown in the warning, if the server version is 1.23, the client version should be 1.22-1.24 instead of 1.25.
This is because kubectl is installed as a dependency of kubeadm.
The kubeadm version will be the specified 1.23.
But kubectl doesn't specify a version, so it installs with the latest version at that time.
* https:/
```
# NOTE(gryf): kubectl will be installed alongside with the kubeadm as
# a dependency
apt_get install \
```
kubectl should also be installed with a version specified.
Changed in kuryr-kubernetes: | |
assignee: | nobody → Roman Dobosz (roman-dobosz) |
Changed in kuryr-kubernetes: | |
status: | New → Confirmed |
Changed in kuryr-kubernetes: | |
status: | Confirmed → In Progress |
Yeah, new version for kubectl has landed some time ago on the repository, and we didn't pin it. Patch is on the way.