Open ganniterix opened 1 year ago
The CR defined cannot be reconciled properly because of the RBAC restriction. The serviceMonitors and ingress are created with the service account cilium-olm in the cilium namespace. A namespace role cilium-olm is bind to the service account. The role is lacking the RBAC accesses to the two resources.
Here's a slightly more restrictive rules:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cilium-olm
namespace: cilium
rules:
- verbs:
- '*'
apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
- verbs:
- '*'
apiGroups:
- networking.k8s.io
resources:
- ingresses
When installing on Openshift 4.12, the service account cilium-olm does not have sufficient permissions
To confirm this is the limitation, the following file was modified:
cluster-network-06-cilium-00005-cilium-olm-role.yaml
Obviously this is not a valid workaround, but after this modification, it works.