<p>I use Windows and I've just downloaded kubectl using link from this instruction: <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/" rel="nofollow noreferrer">Install and Set Up kubectl on Windows</a></p>
<p>But when I check the version I see a warning:</p>
<pre><code>C:\&gt;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.0&quot;, 
                GitCommit:&quot;4ce5a8954017644c5420bae81d72b09b735c21f0&quot;,
                GitTreeState:&quot;clean&quot;, 
                BuildDate:&quot;2022-05-03T13:46:05Z&quot;, 
                GoVersion:&quot;go1.18.1&quot;,
                Compiler:&quot;gc&quot;, Platform:&quot;windows/amd64&quot;
                }
Kustomize Version: v4.5.4
Server Version: version.Info{
                Major:&quot;1&quot;, 
                Minor:&quot;20&quot;, 
                GitVersion:&quot;v1.20.7&quot;,
                GitCommit:&quot;132a687512d7fb058d0f5890f07d4121b3f0a2e2&quot;, 
                GitTreeState:&quot;clean&quot;, 
                BuildDate:&quot;2021-05-12T12:32:49Z&quot;, 
                GoVersion:&quot;go1.15.12&quot;, 
                Compiler:&quot;gc&quot;, 
                Platform:&quot;linux/amd64&quot;
                }
WARNING: version difference between client (1.24) and server (1.20)
         exceeds the supported minor version skew of +/-1
</code></pre>
<ul>
<li>Should I worry about it?</li>
<li>If so, how can I fix it?</li>
<li>What is the <code>server</code> version?</li>
<li>Is it somehow related to <code>~/.kube/config</code> file?</li>
</ul>

gstackoverflow
<p>Server version is the version of Kubernetes the control plane is running.</p>
<p>Client version is the version of your <code>kubectl</code>.</p>
<p>The recommendation is that you keep the two as close as possible to prevent discrepancies between API versions.</p>
<p>For example, if you did a <code>kubectl create --dry-run=client</code> with a 1.24.0 kubectl, it would produce output that is valid for 1.24.0 kubernetes, but the apis it refers to may not be recognised by a 1.20.7 cluster.</p>
<p>Your server is 1.20.7, and your client is 1.24.0. To remove this error, you need to downgrade your kubectl to 1.20.7 while interacting with this server. OR upgrade your cluster to 1.24.0</p>
