<p>while I try to add my k8s cluster in azure vm, is shows error like
error: resource mapping not found for name: &quot;cattle-admin-binding&quot; namespace: &quot;cattle-system&quot; from &quot;STDIN&quot;: no matches for kind &quot;ClusterRoleBinding&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
ensure CRDs are installed first</p>
<p>Here is the output for my command executed</p>
<pre><code>root@kubeadm-master:~# curl --insecure -sfL https://104.211.32.151:8443/v3/import/lqkbhj6gwg9xcb5j8pnqcmxhtdg6928wmb7fj2n9zv95dbxsjq8vn9.yaml | kubectl apply -f -clusterrole.rbac.authorization.k8s.io/proxy-clusterrole-kubeapiserver 
created
clusterrolebinding.rbac.authorization.k8s.io/proxy-role-binding-kubernetes-master created
namespace/cattle-system created
serviceaccount/cattle created
secret/cattle-credentials-e558be7 created
clusterrole.rbac.authorization.k8s.io/cattle-admin created

Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key: beta.kubernetes.io/os is deprecated since v1.14; use &quot;kubernetes.io/os&quot; instead

deployment.apps/cattle-cluster-agent created
daemonset.apps/cattle-node-agent created

error: resource mapping not found for name: &quot;cattle-admin-binding&quot; namespace: &quot;cattle-system&quot; from &quot;STDIN&quot;: no matches for kind &quot;ClusterRoleBinding&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
</code></pre>
<p>ensure CRDs are installed first</p>

gokul
<p>I was also facing the same issue, so I changed the API version for the <code>cattle-admin-binding</code> from beta to stable as below:</p>
<p>Old value:</p>
<pre><code>apiVersion: rbac.authorization.k8s.io/v1beta1
</code></pre>
<p>Changed to:</p>
<pre><code>apiVersion: rbac.authorization.k8s.io/v1
</code></pre>
<p>Though I ran into some other issues later, the above error was gone.</p>
