백킹서비스 및 개발 관련 디렉토리 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
wonho 2025-10-23 13:27:04 +09:00
parent e1036b7c9d
commit 860b8cc08f
18 changed files with 691 additions and 0 deletions

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: ai-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: ai
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: analytic-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: analytic
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: content-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: content
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: distribution-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: distribution
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: event-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: event
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: participation-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: participation
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: user-postgresql-external
spec:
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: tcp-postgresql
selector:
app.kubernetes.io/component: primary
app.kubernetes.io/instance: user
app.kubernetes.io/name: postgresql
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "aidb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "analyticdb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "contentdb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "distributiondb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "eventdb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "participationdb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,61 @@
# PostgreSQL 아키텍처 설정
architecture: standalone
# 글로벌 설정
global:
postgresql:
auth:
postgresPassword: "Hi5Jessica!"
replicationPassword: "Hi5Jessica!"
database: "userdb"
username: "eventuser"
password: "Hi5Jessica!"
storageClass: "managed-premium"
# Primary 설정
primary:
persistence:
enabled: true
storageClass: "managed-premium"
size: 10Gi
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "0.5"
# 성능 최적화 설정
extraEnvVars:
- name: POSTGRESQL_SHARED_BUFFERS
value: "1GB"
- name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
value: "3GB"
- name: POSTGRESQL_MAX_CONNECTIONS
value: "200"
- name: POSTGRESQL_WORK_MEM
value: "16MB"
- name: POSTGRESQL_MAINTENANCE_WORK_MEM
value: "256MB"
# 고가용성 설정
podAntiAffinityPreset: soft
# 네트워크 설정
service:
type: ClusterIP
ports:
postgresql: 5432
# 보안 설정
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: docker.io
repository: bitnamilegacy/postgresql

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: redis-external
spec:
ports:
- name: tcp-redis
port: 6379
protocol: TCP
targetPort: redis
- name: tcp-sentinel
port: 26379
protocol: TCP
targetPort: redis-sentinel
publishNotReadyAddresses: true
selector:
app.kubernetes.io/instance: redis
app.kubernetes.io/name: redis
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,68 @@
architecture: replication
auth:
enabled: true
password: "Hi5Jessica!"
master:
persistence:
enabled: true
storageClass: "managed"
size: 10Gi
configuration: |
maxmemory 1610612736
maxmemory-policy allkeys-lru
appendonly yes
appendfsync everysec
save 900 1 300 10 60 10000
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "1Gi"
cpu: "0.5"
replica:
replicaCount: 2
persistence:
enabled: true
storageClass: "managed"
size: 10Gi
configuration: |
maxmemory 1610612736
maxmemory-policy allkeys-lru
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "1Gi"
cpu: "0.5"
sentinel:
enabled: true
quorum: 2
image:
registry: registry-1.docker.io
repository: bitnamilegacy/redis-sentinel
service:
type: ClusterIP
ports:
redis: 6379
podAntiAffinityPreset: soft
securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001
# image: organization이 bitnami -> bitnamilegacy로 변경
image:
registry: registry-1.docker.io
repository: bitnamilegacy/redis

View File

@ -0,0 +1,7 @@
# 캐시 설치 결과서 (개발환경)
## Redis 캐시 서버
- DB 유형: Redis
- DB Host: 20.214.210.71
- DB Port: 6379
- DB Password: Hi5Jessica!

View File

@ -0,0 +1,57 @@
# 데이터베이스 설치 결과서 (개발환경)
## 1. ai-service
- DB 유형: PostgreSQL
- DB Host: 4.230.112.141
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: aidb
## 2. analytic-service
- DB 유형: PostgreSQL
- DB Host: 4.230.49.9
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: analyticdb
## 3. content-service
- DB 유형: PostgreSQL
- DB Host: 4.217.131.139
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: contentdb
## 4. distribution-service
- DB 유형: PostgreSQL
- DB Host: 4.217.133.59
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: distributiondb
## 5. event-service
- DB 유형: PostgreSQL
- DB Host: 20.249.177.232
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: eventdb
## 6. participation-service
- DB 유형: PostgreSQL
- DB Host: 4.230.72.147
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: participationdb
## 7. user-service
- DB 유형: PostgreSQL
- DB Host: 20.249.125.115
- DB Port: 5432
- DB Username: eventuser
- DB Password: Hi5Jessica!
- DB Name: userdb