Replies: 1 comment 1 reply
-
Hi, I found the solution. I need to create a new ClusterRole called "strimzi-topic-operator", but I don't understand why I had to create this new role since it should be in the installation or documented: apiVersion: rbac.authorization.k8s.io/v1
Regards. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Following the documentation (https://strimzi.io/docs/operators/latest/full/deploying.html), I have deployed the operator in cluster-wide mode, but it fails with the below error:
Unable to start operator for 1 or more namespace
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.96.0.1/apis/kafka.strimzi.io/v1beta2/kafkas. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. kafkas.kafka.strimzi.io is forbidden: User "system:serviceaccount:my-operator-namespace:strimzi-cluster-operator" cannot list resource "kafkas" in API group "kafka.strimzi.io" at the cluster scope: RBAC: clusterrole.rbac.authorization.k8s.io "strimzi-topic-operator" not found.
This error occurs when I set the variable with value * in the deploy (060-Deployment-strimzi-cluster-operator.yaml).
env:
- name: STRIMZI_NAMESPACE
value: "*"
But it works if you set it to the namespace name.
env:
- name: STRIMZI_NAMESPACE
value: "my-operator-namespace"
I have created the ClusterRoleBinding according to the documentation:
kubectl create clusterrolebinding strimzi-cluster-operator-namespaced --clusterrole=strimzi-cluster-operator-namespaced --serviceaccount my-operator-namespace:strimzi-cluster-operator
kubectl create clusterrolebinding strimzi-cluster-operator-watched --clusterrole=strimzi-cluster-operator-watched --serviceaccount my-operator-namespace:strimzi-cluster-operator
kubectl create clusterrolebinding strimzi-cluster-operator-entity-operator-delegation --clusterrole=strimzi-entity-operator --serviceaccount my-operator-namespace:strimzi-cluster-operator
And:
sed -i 's/namespace: .*/namespace: my-operator-namespace/' install/cluster-operator/RoleBinding.yaml
So I don't understand what could be wrong.
Any idea please?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions