<p>I have this</p>
<pre><code>kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;24&quot;, GitVersion:&quot;v1.24.2&quot;, GitCommit:&quot;f66044f4361b9f1f96f0053dd46cb7dce5e990a8&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2022-06-15T14:22:29Z&quot;, GoVersion:&quot;go1.18.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.2&quot;, GitCommit:&quot;52c56ce7a8272c798dbc29846288d7cd9fbae032&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-04-30T20:19:45Z&quot;, GoVersion:&quot;go1.13.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
WARNING: version difference between client (1.24) and server (1.18) exceeds the supported minor version skew of +/-1
</code></pre>
<p>I upgraded my client version using official <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/" rel="nofollow noreferrer">install kubectl</a> docs.</p>
<p>I installed kubeadm with snap</p>
<pre><code>kubeadm version
kubeadm version: &amp;version.Info{Major:&quot;1&quot;, Minor:&quot;24&quot;, GitVersion:&quot;v1.24.2&quot;, GitCommit:&quot;f66044f4361b9f1f96f0053dd46cb7dce5e990a8&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2022-06-17T22:34:44Z&quot;, GoVersion:&quot;go1.18.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>
<p>How to upgrade server?</p>

<p>As you asked how to upgrade K8s :
This document contains a step by step process to <a href="https://www.golinuxcloud.com/kubernetes-upgrade-version/" rel="nofollow noreferrer">update K8’s</a></p>
<p>When your cluster is using the version 1.18.6, you could upgrade to 1.18.p where p &gt;= 7 and to 1.19.x (whatever the value of x), but not to 1.20.x. If you plan to upgrade from 1.18.x to 1.20.x directly then the kubeadm upgrade plan command would fail so to overcome that you would first have to upgrade from 1.18.x to 1.19.x and from 1.19.x to 1.20.x.
Post this needs to upgrade a Kubernetes cluster from <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/" rel="nofollow noreferrer">version 1.19.x to version 1.20.x to 1.21 to 1.22 to 1.23</a>.</p>
