On ROSA, unable to list some objects with "dedicated-admin"
Environment
- Amazon Web Services (AWS)
- Red Hat OpenShift Service on AWS (ROSA)
Issue
- On our Red Hat OpenShift Service on AWS (ROSA) cluster, members of the
dedicated-admins(with theClusterRole/dedicated-admins-cluster), some permissions are missing, for example:list/get/watchfor theegressfirewalls.k8s.ovn.orgresourcelist/get/watchfor thedeployments/rollbacksubresource
Resolution
-
Create a
ClusterRolethat uses themanaged.openshift.io/aggregate-to-dedicated-admins: clusterlabel to grant these permissions:apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: hive.openshift.io/managed: "false" managed.openshift.io/aggregate-to-dedicated-admins: cluster name: dedicated-admins-aggregate-custom rules: - apiGroups: - "apps" resources: - "deployments/rollback" verbs: - "get" - "list" - "watch" - apiGroups: - "extensions" resources: - "deployments/rollback" verbs: - "get" - "list" - "watch" - apiGroups: - "k8s.ovn.org" resources: - "egressfirewalls" - "egressips" - "egressqoses" verbs: - "get" - "list" - "watch"
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments