Git Product home page Git Product logo

sentry-k8s's Introduction

Sentry on Kubernetes

Quickstart

First and foremost, shout out to the people at sentry.io for their project. I recommend forking and helping the community.

Custom Image

If you want to customize specific settings for your installation, build a custom sentry image by modifying the files config.yml, Dockerfile and sentry.conf.py in the build directory.

Then, proceed to upload the custom image to your repository of choice, as following:

REPOSITORY=some-repo/your-sentry make build push

If you don't want to build a custom image, you may use script3r/sentry-k8s.

Prereqs

You'll need to setup a PostgreSQL database with a user and database designated for sentry.

You will also want to run the sentry migrations on it. For more details see https://docs.sentry.io/server/installation/docker/.

Deploy to Kubernetes

Modify the secrets file to contain the actual secrets used in the project. Make sure they're base64 encoded. For example, if your database name and database user are sentry, then your secrets file should contain:

dbName: c2VudHJ5
dbUser: c2VudHJ5

To deploy to Kubernetes, simply type:

kubectl apply -f deploy/k8s/

Notice that this will create a namespace named sentry. Confirm the machines are up by typing:

kubectl get pods -nsentry

You should see images for web, worker and cron.

Enjoy! Your sentry is now exposed as a service sentry-web-service listening on port 80. It is recommended to front this with a TLS/SSL enabled proxy.

TLS Notes

Notice that by default, this setup script enables TLS/SSL by setting the environment variable SENTRY_USE_SSL to 1 in 20web.yml.

If you want to disable TLS (don't do it!), you may set this environment variable to 0.

sentry-k8s's People

Contributors

script3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sentry-k8s's Issues

Background workers haven't checked in recently

Thank you for this template. I have it up and running, but after a few hours, I'm not receiving events anymore. I'm getting this error message in the sentry admin panel:

Background workers haven't checked in recently. This is likely an issue with your configuration or the workers aren't running.

base64 timesaver hint

I've spent a lot of time debugging dns service discovery issue, but at the end I found a new line character after redis/db host names, because when you do base64 encoding like
echo 'sentry-postgres' | base64 | pbcopy it inserts \n character at the end.

The proper cmd is echo -n 'sentry-postgres' | base64 | pbcopy

Probably this hint will save time for someone else )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.