Hi all. I’m trying to setup sentry on my baremetal k8s cluster. I seem to have hit a wall in trying to get the web interface to show.
Here is my YAML for deployment:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sentry
labels:
name: sentry
env: staging
spec:
replicas: 1
template:
metadata:
labels:
name: sentry
spec:
containers:
- name: redis
image: redis:3.2-alpine
- name: sentry
image: 123.127.154:5000/sentry:latest
env:
- name: SENTRY_REDIS_HOST
value: localhost
- name: SENTRY_SECRET_KEY
value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- name: SENTRY_EMAIL_HOST
value: mail.mydomain.com
- name: SENTRY_EMAIL_PORT
value: "587"
- name: SENTRY_EMAIL_USER
value: admin
- name: SENTRY_EMAIL_PASSWORD
value: XXXXXXXXXXXXXXX
- name: SENTRY_EMAIL_USE_TLS
value: "1"
- name: SENTRY_ENABLE_EMAIL_REPLIES
value: "1"
- name: SENTRY_SMTP_HOSTNAME
value: mail.mydomain.com
- name: cron
image: 123.127.154.11:5000/sentry:latest
env:
- name: SENTRY_REDIS_HOST
value: localhost
- name: SENTRY_SECRET_KEY
value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
args:
- run
- cron
- name: postgres
image: postgres:9.5
volumeMounts:
- mountPath: "/var/lib/postgresql/data"
name: postgres-data
volumes:
- name: postgres-data
hostPath:
path: /storage/gv0/postgres
kind: Service
apiVersion: v1
metadata:
name: "sentry"
spec:
selector:
app: "sentry"
ports:
- name: "sentry"
protocol: "TCP"
port: 9000
targetPort: 9000
It deploys successfully, but if I use an ssh tunnel for the pod’s IP on port 9000 it will not connect. I do see a path of auth/login, but it will timeout. If I run curl directly inside the sentry container it will give back an empty response. That’s not normal, right?
What am I missing here?
[root@master1 image-build]# kubectl exec -ti sentry-723606023-d9g22 -c sentry bash
root@sentry-723606023-d9g22:/usr/src/sentry# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sentry 1 0.0 0.0 4228 680 ? Ss 22:04 0:00 tini -- sentry run web
sentry 15 0.1 0.0 50504 9592 ? S 22:04 0:02 [Sentry] uWSGI master
sentry 20 0.1 0.2 503180 82476 ? Sl 22:04 0:02 [Sentry] uWSGI worker 1
sentry 21 0.1 0.2 513456 96460 ? Sl 22:04 0:03 [Sentry] uWSGI worker 2
sentry 22 0.1 0.2 518928 96564 ? Sl 22:04 0:03 [Sentry] uWSGI worker 3
root 135 0.0 0.0 21996 3652 ? Ss 22:42 0:00 bash
root 141 0.0 0.0 19192 2412 ? R+ 22:42 0:00 ps aux
& in the cron container:
root@sentry-723606023-d9g22:/usr/src/sentry# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sentry 1 0.0 0.0 4228 684 ? Ss 22:04 0:00 tini -- sentry run cron
sentry 15 0.2 0.2 298452 88632 ? S 22:04 0:05 [celery beat] run cron
root 20 0.0 0.0 21996 3684 ? Ss 22:43 0:00 bash
root 27 0.0 0.0 19192 2412 ? R+ 22:44 0:00 ps aux
If I telnet the service addy on port 9000 from a host it immediately disconnects.