An open API service indexing awesome lists of open source software.

https://github.com/sr/kube-sentry-controller

Kubernetes CRDs and controller for managing Sentry teams, projects, and client keys
https://github.com/sr/kube-sentry-controller

kubernetes sentry

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# kube-sentry-controller

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

[crd]: https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/

## 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:

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](https://kubernetes.io/docs/concepts/configuration/secret/) with the SDN key:

```
kubectl get secrets example -o yaml
```

To clean-up, run:

```
kubectl destroy -f config/samples/sentry.yaml
```