Sentry.io template deployment for Openshift.
This Sentry version used is 9.1.2
. You can check other images in Sentry DockerHub. Changing the version, you might change configMap
settings inside this project.
- Create a Project in Openshift. Log using
oc login
and then,oc project <your-project>
. - Create an
Redis Ephemeral
from Openshift Catalog Template. Follow the default instructions. - Create an
Postgres Persistent
from Openshift Catalog Template. Follow the default instructions. Keep attention in Pesistent Volume creation. stack.yaml
contains lots of environment specific settings, please edit those first. Everithing is set as default, but you can choose to edit everything.- Run
oc create -f stack.yaml
. All settings will be installed in your project. - Check if
postgres
is up and running. you can check thoseoc get pods
. - Run
oc rsh postgres
and then writepsql
and insert commandCREATE EXTENSION IF NOT EXISTS citext;
in the previous created database. In our example you need to change the database tosentry
, then inpsql
you need to run\c sentry
and then run the query above. - Edit
populator.yaml
env variables with your own specific settings, then runoc create -f populator.yaml
- That populator will populate the db. You can follow the process doing
oc get pods | grep database-populator
andoc logs database-populator
. This might take few minutes. - After the
database-populator
is Completed, runoc delete pod database-populator
. - try login in
https://yoursentryurl
set in route configuration. You can do a new route as you wish in openshift.