<p>While I am trying to approve the certificate for RBAC in Kubernetes I am getting error.</p>
<p>I create a certificate request for Kubernetes for student-csr</p>
<pre><code>apiVersion: certificates.k8s.io/v1beta1
kind: CertificateSigningRequest
metadata:
  name: student-csr
spec:
  groups:
  - system:authenticated
  request: &lt;encoded key&gt;
  usages:
  - digital signature
  - key encipherment
  - client auth
</code></pre>
<p>Then I ran <code>kubectl create -f signing-request.yaml</code> and out put was <pre>certificatesigningrequest.certificates.k8s.io/student-csr created</pre></p>
<p>And then <code>kubectl get csr</code> shows</p>
<pre>NAME          AGE    SIGNERNAME                     REQUESTOR       CONDITION
student-csr   100s   kubernetes.io/legacy-unknown   minikube-user   Pending </pre>
<p>So far so good. But the problem occurred when I tried to approve it by <code>kubectl certificate approve student-csr</code></p>
<pre>No resources found
error: no kind "CertificateSigningRequest" is registered for version "certificates.k8s.io/v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28"</pre>
<p>I don't have any idea why. I tried to search but there is nothing similar to this kind of error.</p>
<p>Tools I am using:</p>
<ul>
<li>Minikube: v1.13.1</li>
<li>Kubernetes v1.19.2</li>
<li>Docker 19.03.12</li>
<li>Mac OS: Catalina (10.15.6)</li>
</ul>
<p>*** Using minikube with <code>minikube start --container-runtime=docker --vm-driver=virtualbox</code></p>
<p>Any kind of help much appreciated.</p>
<p>Thank you in advance.</p>

atiq1589
<p>I faced this issue while I was running kubectl version v1.17 and my k8s cluster was version v1.19:</p>
<pre><code>$ kubectl version --short
Client Version: v1.17.0
Server Version: v1.19.2
</code></pre>
<p>I fixed it by <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/" rel="noreferrer">updating my kubectl</a> to v1.19</p>
<pre><code>$ kubectl version --short
 Client Version: v1.19.0
 Server Version: v1.19.2
</code></pre>
