Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm install tailing sidecar operator error #168

Closed
nativo-mshivaswamy opened this issue Jun 22, 2021 · 0 comments · Fixed by #345
Closed

Helm install tailing sidecar operator error #168

nativo-mshivaswamy opened this issue Jun 22, 2021 · 0 comments · Fixed by #345
Labels
bug Something isn't working
Milestone

Comments

@nativo-mshivaswamy
Copy link

k8s version: v1.20.7
kubectl version: v1.21.0
helm version: v3.6.0

Command used to install operator:

  • helm repo add tailing-sidecar https://sumologic.github.io/tailing-sidecar
  • helm repo update
  • helm pull tailing-sidecar/tailing-sidecar-operator --untar
  • helm upgrade --install tailing-sidecar --create-namespace -n tailing-sidecar-system tailing-sidecar-operator/

Error from the manager container:

error retrieving resource lock tailing-sidecar-system/7b555970.sumologic.com: leases.coordination.k8s.io is forbidden: User cannot get resource leases in API group "coordination.k8s.io" in the namespace "tailing-sidecar-system"

How I was able to fix:

Grant these permissions

  • apiGroups:
    • coordination.k8s.io
      resources:
    • leases
      verbs:
    • create
    • get
    • list
    • update

to

kind: Role
name: tailing-sidecar-leader-election-role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants