<p>Error when I try to apply a <code>kubectl ou edit</code>, for <code>kubectl get pods</code>, it works normally.</p>
<p>&quot;error validating data: the server has asked for the client to provide credentials; if you choose to ignore these errors, turn validation off with <code>--validate=false</code>&quot;</p>
<p>edit config and checked all pods on kube-system, all is working normally.</p>

David 
<p>I just found the problem, if you get this error, please check if your kubectl version is the same of server, my computer kubectl was in version v1.27.1 and server was v1.24.10, I used computer v1.24.10 as well and it worked fine!</p>
<p>kubectl version # it will show your computer and server version.</p>
