Skip to content

Kubernetes CRDs and controller for managing Sentry teams, projects, and client keys

License

Notifications You must be signed in to change notification settings

sr/kube-sentry-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-sentry-controller

A set of Kubernetes CustomResourceDefinition and a controller for managing Sentry teams, projects, and client keys.

Install

To install the kube-sentry-controller binary, run:

go get github.com/sr/kube-sentry-controller

Note that while the binary could be used as is, it is mainly provided as an example for how to use the sentrycontroller package. For production deployments you'd typically write your own main that integrates (metrics, logging, ...) with your existing infrastructure.

Usage

Create a Sentry API Auth Token:

https://docs.sentry.io/api/auth/

Configure the CRDs on the cluster:

kubectl apply -f config/crds

Run the controller:

kube-sentry-controller -api-token "${SENTRY_API_TOKEN}"

Create an example team, project, and client key:

sed -i "" "s,SENTRY_ORGANIZATION,my-org," config/samples/sentry.yaml
kubectl -f config/samples/sentry.yaml

Check that the controller has created a secret with the SDN key:

kubectl get secrets example -o yaml

To clean-up, run:

kubectl destroy -f config/samples/sentry.yaml

About

Kubernetes CRDs and controller for managing Sentry teams, projects, and client keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published