3ee1c1ee23
이슈 #9에서 결정된 CloudNativePG 채택을 카탈로그 앱에 확장 적용한다. airflow/lakekeeper/mlflow/superset/flowise 5개 차트가 내장하던 bitnami postgresql 서브차트를 끄고 앱 전용 cnpg-cluster 인스턴스를 외부 DB로 쓰도록 전환했다. 5개 모두 dev 클러스터 격리 네임스페이스에서 배포 테스트로 실측 검증했다. gitea/keycloak/dnsup 는 서브차트가 아니라 공유 postgresql-ha 를 외부 참조하며 paasup/dipup 레포 관리 대상이라 제외했다 — 인수인계 문서만 추가했다. 배포 구조: - ArgoCD ApplicationSet 으로 DB(syncWave 0) → 앱(syncWave 1) 순서를 보장한다. 기존 openmetadata/victoria-metrics 관례를 따랐다. cnpg-cluster 차트는 범용 상태로 유지하고 앱별 값은 manifests/applicationset/<app>/ 에 둔다. 검증 중 발견해 함께 고친 문제: - lakekeeper: cnpg 의 -ro 는 replica 전용이라 instances:1 에서 엔드포인트가 0개다. 읽기 연결을 -r(전체 라운드로빈)로 교체했다. - airflow/superset: ingressClassName 누락 + kong 애노테이션 잔존으로 이 클러스터(apisix 전용)에서 ingress 접근이 아예 불가능했다. apisix + regex path 로 교체했다. - 배포 테스트가 PV 만 지우고 Longhorn Volume CR 을 남겨 storageScheduled 가 누적됐다(orphan 112개 ~1TB 로 배포 차단). 두 스크립트의 정리 로직을 고쳤다. 재사용 구조화: - .claude/skills/chart-to-cnpg/ 신규. 남은 4개 차트(langflow-ide, langfuse, litellm, nemo)에 같은 절차를 재사용한다. flowise 에 실제 적용해 검증했다. - 배포 테스트 공통 절차는 .claude/deploy-test-procedure.md, 환경 함정은 .claude/pitfalls.md 로 단일화하고 앱별 README 는 참조만 남겼다. 관련: #9, #14 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
86 lines
2.5 KiB
YAML
86 lines
2.5 KiB
YAML
catalog:
|
|
resources: {}
|
|
ingress:
|
|
enabled: true
|
|
ingressClassName: "apisix"
|
|
host: "lakekeeper.example.org"
|
|
path: "/.*"
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: root-ca-issuer
|
|
cert-manager.io/duration: 8760h
|
|
cert-manager.io/renew-before: 720h
|
|
k8s.apisix.apache.org/use-regex: "true"
|
|
k8s.apisix.apache.org/ssl-redirect: "true"
|
|
tls:
|
|
enabled: true
|
|
secretName: "lakekeeper-tls"
|
|
|
|
# keycloak 사설 인증서 사용 시 설정
|
|
extraEnv:
|
|
- name: SSL_CERT_FILE
|
|
value: "/tmp/ca.crt"
|
|
extraVolumeMounts:
|
|
- name: keycloak-tls
|
|
mountPath: "/tmp/ca.crt"
|
|
subPath: ca.crt
|
|
readOnly: true
|
|
extraVolumes:
|
|
- name: keycloak-tls
|
|
secret:
|
|
secretName: root-ca-secret
|
|
|
|
# lakekeeper DB — 내장 postgres 서브차트(groundhog2k/postgres) 대신
|
|
# cnpg-cluster(전용 인스턴스)를 외부 DB로 사용한다.
|
|
# 사전 배포: helm install lakekeeper-db manifests/helm/cnpg-cluster/1.0.0 \
|
|
# -f manifests/helm/cnpg-cluster/1.0.0/custom-values.yaml \
|
|
# -f manifests/applicationset/lakekeeper/0.11.0/lakekeeper-db-values.yaml -n <ns>
|
|
postgresql:
|
|
enabled: false
|
|
|
|
externalDatabase:
|
|
type: postgres
|
|
# cnpg-cluster의 -ro 서비스는 replica 파드에만 연결되는데, 권장 배포 기준인
|
|
# instances: 1(small 티어)에서는 replica가 없어 -ro가 엔드포인트 0개인 서비스가
|
|
# 된다 — lakekeeper의 read-connection이 영구히 재시도만 하며 멈춘다(배포 테스트로 실측).
|
|
# -r은 인스턴스 수와 무관하게 항상 primary를 포함해 라운드로빈하므로 이 값을 쓴다.
|
|
# instances를 3 이상으로 올려 실제 replica를 운용하는 경우에도 -r로 충분하다.
|
|
host_read: "lakekeeper-db-r"
|
|
host_write: "lakekeeper-db-rw"
|
|
port: 5432
|
|
database: lakekeeper
|
|
user: lakekeeper
|
|
password: lakekeeper
|
|
|
|
|
|
# OIDC 인증
|
|
auth:
|
|
oauth2:
|
|
providerUri: "https://keycloak.example.org/realms/paasup"
|
|
audience: "lakekeeper"
|
|
ui:
|
|
clientID: "lakekeeper"
|
|
scopes: "lakekeeper"
|
|
authz:
|
|
backend: "openfga"
|
|
openfga:
|
|
apiKey: "your-api-key" # openfga.authn.preshared.key에 정의된 값가 동일하게 설정.
|
|
|
|
internalOpenFGA: true
|
|
openfga:
|
|
resources: {}
|
|
# 테스트 환경 비활성화, authn을 oidc 타입으로 실행하기 위해서는 playground에서는 불가.
|
|
playground:
|
|
enabled: false
|
|
authn:
|
|
method: "preshared"
|
|
preshared:
|
|
# openssl rand -base64 32
|
|
keys: ["your-api-key"]
|
|
postgresql:
|
|
primary:
|
|
resources: {}
|
|
persistence:
|
|
storageClass: ""
|
|
size: 8Gi
|
|
|