Skip to content

Commit

Permalink
chore: dev global api uses configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
evanp committed Mar 3, 2025
1 parent a6afd46 commit 50c7944
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
11 changes: 11 additions & 0 deletions k8s/cc-global-api-db-configmap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: cc-global-api-db-configmap
namespace: default
data:
DB_HOST: "cc-global-api-db"
DB_PORT: "5432"
DB_USER: "ccglobal"
DB_PASSWORD: "ccglobal"
DB_NAME: "ccglobal"
13 changes: 3 additions & 10 deletions k8s/cc-global-api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: cc-global-api-db-configmap
env:
- name: PROJECT_NAME
value: "CityCatalyst Global API"
- name: DB_HOST
value: "cc-global-api-db"
- name: DB_PORT
value: "5432"
- name: DB_USER
value: "ccglobal"
- name: DB_PASSWORD
value: "ccglobal"
- name: DB_NAME
value: "ccglobal"
resources:
limits:
memory: "1024Mi"
Expand Down

0 comments on commit 50c7944

Please sign in to comment.