$ litmusctl config use-account
Host endpoint where litmus is installed: https://
Username: admin
β
Successfully set the current account to 'admin' at 'https://'
$ litmusctl connect chaos-infra
Project list:
- admin-project
Select a project [Range: 1-1]: 1
Installation Modes:
- Cluster
- Namespace
Select Mode [Default: cluster] [Range: 1-2]: 2
π Running prerequisites check....
π role β
π rolebinding β
π« You don't have sufficient permissions.
π Please use a service account with sufficient permissions.
Looking at litmus-server-role the following is set -->
- apiGroups: [rbac.authorization.k8s.io]
resources: [rolebindings, roles]
verbs: [create]
And in the ValidateSAPermissions function on ops.go the resources are like -->
if mode == "cluster" {
resources = [2]string{"clusterrole", "clusterrolebinding"}
} else {
resources = [2]string{"role", "rolebinding"}
I guess that should be 'roles' and 'rolesbinding', right?.