question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strimzi Quickstart Configured service account doesn't have access. Service account may have been revoked.

See original GitHub issue

Describe the bug Installing Strimzi operator as per: https://strimzi.io/docs/operators/latest/quickstart.html into fresh Rancher Desktop k3s. (Also tried the same demo in kubespray/kubeadm production k8s cluster.

I’ve followed the steps by both changing the namespace using the suggested:

sed -i '' 's/namespace: .*/namespace: kafka/' install/cluster-operator/*RoleBinding*.yaml

as well as leaving it default using the “myproject” namespace.

operator pod doesn’t deploy properly and gives “CrashLoopBackOff”, the problem seems to be service account access:

ERROR Main:154 - Cluster Operator verticle in namespace my-kafka-project failed to start
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.43.0.1/apis/kafka.strimzi.io/v1beta2/namespaces/my-kafka-project/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:kafka:strimzi-cluster-operator" cannot list resource "kafkas" in API group "kafka.strimzi.io" in the namespace "my-kafka-project".

To Reproduce Steps to reproduce the behavior:

  1. Go to https://strimzi.io/docs/operators/latest/quickstart.html
  2. Follow instructions on quickstart
  3. Run command “kubectl get pods --all-namespaces” then kubectl -n kafka logs strimzi-cluster-<pod_id>
  4. See error in logs

Expected behavior a stable operator installed, and the ability to deploy kafka objects.

Environment (please complete the following information):

  • Strimzi version: strimzi-0.27.1
  • Installation method: github files as per https://strimzi.io/docs/operators/latest/quickstart.html
  • Kubernetes cluster: Rancher Desktop v1.21.7+k3s1 (also tried on kubeadm/kubespray v1.21.4, same problem)
  • Infrastructure: Rancher Desktop, kubespray.

YAML files and logs

Attach or copy paste the custom resources you used to deploy the Kafka cluster and the relevant YAMLs created by the Cluster Operator. Attach or copy and paste also the relevant logs. strimzi.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
iagotomascommented, Feb 9, 2022

I’m facing the same issue but with Helm deployment, I configured the deployment to watch any namespace and the pod throws the same error. Can you help please?

0reactions
jtqfairecommented, Jun 15, 2022

@all4innov I had install cluster operator with this command and it’s works now

kubectl create -f https://strimzi.io/install/latest?namespace=kafka' -n kafka

If can help you 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying and Upgrading Strimzi
The deployment procedures in this guide are designed to help you set up the initial structure of your deployment. After setting up the ......
Read more >
Openshift :Forbidden!Configured service account doesn't have ...
kubernetes - Openshift :Forbidden! Configured service account doesn't have access. Service account may have been revoked - Stack Overflow. ...
Read more >
Apache Kafka Reference Guide - Quarkus
For a quick start take a look at Getting Started to SmallRye Reactive Messaging ... In dev mode and when running tests, Dev...
Read more >
Release G: Coordinated Service Exposure - Confluence
Kube use service account (sa) to validate api access; SAs can be ... Note: you may also want to update the keycloak service...
Read more >
Strimzi Operator and Kafka Cluster Provisioning
The service account and role binding do not need to be re-installed if you did it previously. Concept summary. The Cluster Operator is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found