Skip to content

Instantly share code, notes, and snippets.

@leoluz
Last active July 12, 2023 10:26
Show Gist options
  • Save leoluz/6d4346796dd29c7bc5104e59d3bcfa66 to your computer and use it in GitHub Desktop.
Save leoluz/6d4346796dd29c7bc5104e59d3bcfa66 to your computer and use it in GitHub Desktop.
enable/disable RBAC in docker-for-desktop
-- enable RBAC in docker-for-desktop
k delete clusterrolebinding docker-for-desktop-binding
-- disable RBAC in docker-for-desktop
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: docker-for-desktop-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment