3. Create a Cluster Role
- From OpenShift cluster console navigation pane, go to User Management > Roles to enter Roles page.
- Click Create Role to create role.
- Use the minimum YAML definitions requirement below except the role name. Please enter a role name of your choice.
- Click Create to finish creating role.
kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: (user-defined) rules: - verbs: - get - watch - list apiGroups: - image.openshift.io resources: - images - imagestreamimages - imagestreams - imagestreams/layers
Note: Make a note of the role name and use it later in other configuration.