I have created a ClusterRole:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: restricted-pods-role
rules:
- apiGroups:
- extensions
resources:
- podsecuritypolicies
resourceNames:
- restricted-psp
verbs:
- use
I have given cluster-admin privileges to user account alex.pitt@xcom.net through the ClusterRoleBinding using below command:
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user alex.pitt@xcom.net
Now I want to give the same cluster-admin privileged to dave.pot@xcom.net instead of alex.pitt@xcom.net.
How can I do it from Cloud Shell?