본문 바로가기
공부/Open Source

[Sentry/helm] sentry 쿠버에 띄우기

by haejang 2024. 7. 26.
728x90
728x90

 

 

 

# 사용 차트

https://artifacthub.io/packages/helm/sentry/sentry/23.11.0

 

sentry 23.11.0 · webofmars/sentry

A Helm chart for Kubernetes

artifacthub.io

 

sentry - 23.11.0 사용

 

 

센트리는 같이 깔아야 하는 놈들이 많다. clickhouse, kafka, zookeeper, postgres, redis, rabbitmq ...

(values도 엄청 길다.. 2천줄 넘음;)

1. postgres랑 redis는 AWS RDS, ElastiCache를 사용하는거로 변경하고,

2. 폐쇄망이라 일단 mail설정은 포기 (나중에 누군가 하겠지)

3. ingress 사용

4. prometheus serviceMonitor 설정

 

으로 설정해 보았다.

 

 

# values.yaml

user:
  create: true
  email: <ADMIN_EMAIL>
  password: <ADMIN_PASSWORD>

system:
  url: <SENTRY_DOMAIN>
  adminEmail: <ADMIN_EMAIL>
  public: false

nginx:
  enabled: false

ingress:
  enabled: true
  ingressClassName: nginx
  hostname: <SENTRY_DOMAIN>
  annotations:
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"

redis:
  enabled: false
externalRedis:
  host: <REDIS_HOST>
  port: 6379

postgresql:
  enabled: false
externalPostgresql:
  host: <POSTGRESQL_HOST>
  port: 5432
  username: sentry
  password: <SENTRY_USER_PASSWORD>
  database: sentry

metrics:
  enabled: true
  serviceMonitor:
    enabled: true

filestore:
  backend: filesystem
  filesystem:
    path: /var/lib/sentry/files
    persistence:
      enabled: true
      storageClass: gp3
      accessMode: ReadWriteOnce
      size: 50Gi

 

 

RDS에서 sentry용 db, user 만들고 권한주는건 아래 쿼리로 진행했다.

(db 이름 - sentry / user 이름 - sentry)

CREATE DATABASE sentry;
CREATE USER sentry WITH PASSWORD '비밀번호';

GRANT ALL PRIVILEGES ON DATABASE sentry TO sentry;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO sentry;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO sentry;

ALTER DATABASE sentry OWNER TO sentry;

ALTER USER sentry WITH LOGIN;

 

 

끝~

 

 

 

728x90
728x90

댓글