Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: removes cloud sql proxy from api deployment #682

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions apps/api/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ version: "2.0"
services:
api:
image: {{IMAGE_NAME}}
depends-on: cloud-sql-proxy
env:
- DOPPLER_TOKEN={{DOPPLER_TOKEN}}
- SENTRY_SERVER_NAME=akash
Expand All @@ -15,22 +14,6 @@ services:
- {{API_DOMAIN}}
to:
- global: true
cloud-sql-proxy:
image: redm4x/cloud-sql-proxy:1.31.2
env:
- KeyPath=/custom/proxy_key.json
- ConnectionName=cloudmos-explorer:us-central1:cloudmos-postgresql
- Token={{SQL_PROXY_AUTH_TOKEN}}
command:
- "sh"
- "-c"
args:
- 'echo "${Token}" | base64 --decode > $KeyPath && /cloud_sql_proxy -instances=$ConnectionName=tcp:0.0.0.0:5432 -credential_file=$KeyPath'
expose:
- port: 5432
as: 5432
to:
- service: api

profiles:
compute:
Expand All @@ -42,30 +25,15 @@ profiles:
size: 2Gi
storage:
size: 2Gi
cloud-sql-proxy:
resources:
cpu:
units: 0.5
memory:
size: 512Mi
storage:
size: 2Gi
placement:
dcloud:
pricing:
api:
denom: uakt
amount: 1000
cloud-sql-proxy:
denom: uakt
amount: 1000

deployment:
api:
dcloud:
profile: api
count: 1
cloud-sql-proxy:
dcloud:
profile: cloud-sql-proxy
count: 1
Loading