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.

Provide kubernetes role for RBAC

See original GitHub issue

As of Kubernetes 1.8+, RBAC is enabled by default. You’ll need the following setup to allow the program to access the events:

kubectl create sa sentry-kubernetes
kubectl create clusterrole sentry-kubernetes --verb=get,list,watch --resource=events
kubectl create clusterrolebinding sentry-kubernetes --clusterrole=sentry-kubernetes --user=sentry-kubernetes

kubectl run sentry-kubernetes \
  --image bretthoerner/sentry-kubernetes \
  --serviceaccount=sentry-kubernetes \
  --env="DSN=$YOUR_DSN"

When you add --dry-run -o yaml to all commands, you’ll get the .yml definition files.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:9
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Feb 2, 2018

🎉 It seems to be working after making some minor changes to the ClusterRoleBinding

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: sentry-kubernetes
  namespace: default
roleRef:
  kind: ClusterRole
  name: sentry-kubernetes
  apiGroup: rbac.authorization.k8s.io  
subjects:
- kind: ServiceAccount
  name: sentry-kubernetes
  namespace: default  
0reactions
shovalaharoni99commented, Apr 4, 2021

ן already did that, and it still not working. I don’t understand why I’m getting this error. @Frankkkkk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using RBAC Authorization | Kubernetes
The RBAC API declares four kinds of Kubernetes object: Role, ClusterRole, RoleBinding and ClusterRoleBinding. You can describe objects, or amend ...
Read more >
Kubernetes Role-Based Access Control (RBAC) - StrongDM
The Role-Based Access Control (RBAC) framework in Kubernetes allows you to do just that. For example, it can help to ensure that developers...
Read more >
Configure RBAC in your Kubernetes Cluster
Step 1: Create the office namespace · Step 2: Create the user credentials · Step 3: Create the role for managing deployments ·...
Read more >
What is RBAC in Kubernetes? - Daniel Chernenkov - Medium
RBAC stands for Role-Based Access Control. It is an approach that is used for restricting access to users and applications on the system/network....
Read more >
Understanding Kubernetes RBAC: Key Concepts and Examples
In Kubernetes, RBAC policies can be used to define the access rights of human users (or groups of human users). Kubernetes identifies human...
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