Skip to content

Commit

Permalink
fix: all secrets i kube now
Browse files Browse the repository at this point in the history
  • Loading branch information
cdirks4 committed Feb 11, 2025
1 parent 4161310 commit 054889d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
21 changes: 16 additions & 5 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,27 @@ spec:
name: clerk-credentials
key: CLERK_SECRET_KEY
- name: DATABASE_URL
value: 'postgresql://postgres:[email protected]:5432/openbooklm'
valueFrom:
secretKeyRef:
name: db-credentials
key: DATABASE_URL
- name: REDIS_URL
value: 'redis://redis.openbooklm.svc.cluster.local:6379'
valueFrom:
secretKeyRef:
name: redis-credentials
key: REDIS_URL
- name: NODE_ENV
value: 'production'
- name: NEXT_PUBLIC_API_URL
value: 'http://openbooklm-backend.openbooklm.svc.cluster.local:8000/python/api'
valueFrom:
configMapKeyRef:
name: openbooklm-config
key: API_URL
- name: NEXT_PUBLIC_BASE_URL
value: 'http://143.42.127.58'
valueFrom:
configMapKeyRef:
name: openbooklm-config
key: BASE_URL
# Add Cerebras API key to frontend
- name: CEREBRAS_API_KEY
valueFrom:
Expand Down Expand Up @@ -84,7 +96,6 @@ spec:
npx prisma generate
pnpm build
pnpm start
# Backend container (single definition)
- name: backend
image: python:3.12-slim
Expand Down
15 changes: 12 additions & 3 deletions k8s/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ spec:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: openbooklm
valueFrom:
secretKeyRef:
name: postgres-credentials
key: POSTGRES_DB
- name: POSTGRES_USER
value: postgres
valueFrom:
secretKeyRef:
name: postgres-credentials
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
value: postgres_password
valueFrom:
secretKeyRef:
name: postgres-credentials
key: POSTGRES_PASSWORD
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
volumeMounts:
Expand Down

0 comments on commit 054889d

Please sign in to comment.