<p>I deleted my cluster-admin role via kubectl using:</p>
<p><code>kubectl delete clusterrole cluster-admin</code></p>
<p>Not sure what I expected, but now I don't have access to the cluster from my account. Any attempt to get or change resources using kubectl returns a 403, Forbidden.
Is there anything I can do to revert this change without blowing away the cluster and creating a new one? I have a managed cluster on Digital Ocean.</p>

eLymar
<p>Try applying this YAML to creaste the new Cluster role</p>
<pre><code>apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  annotations:
    rbac.authorization.kubernetes.io/autoupdate: &quot;true&quot;
  labels:
    kubernetes.io/bootstrapping: rbac-defaults
  name: cluster-admin
rules:
- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - '*'
- nonResourceURLs:
  - '*'
  verbs:
  - '*'
</code></pre>
<p>apply the YAML file changes</p>
<pre><code>kubectl apply -f &lt;filename&gt;.yaml
</code></pre>
