Provide kubernetes role for RBAC
See original GitHub issueAs 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:
- Created 6 years ago
- Reactions:9
- Comments:18 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉 It seems to be working after making some minor changes to the
ClusterRoleBinding
ן already did that, and it still not working. I don’t understand why I’m getting this error. @Frankkkkk