-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeployment.yaml
41 lines (40 loc) · 1.17 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: apps/v1
kind: Deployment
metadata:
name: hasura-graphql-engine
spec:
replicas: 1
selector:
matchLabels:
app: hasura-graphql-engine
template:
metadata:
labels:
app: hasura-graphql-engine
spec:
containers:
- name: hasura
image: hasura/graphql-engine:dev-livequeries-e3921d3
command:
- sh
- -c
- "graphql-engine --database-url postgres://$POSTGRES_DB_USER:$POSTGRES_DB_PASSWORD@$POSTGRES_DB_HOST/postgres serve --server-port 8080 --enable-console"
ports:
- containerPort: 8080
env:
- name: POSTGRES_DB_HOST
value: 127.0.0.1:5432
- name: POSTGRES_DB_USER
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: username
- name: POSTGRES_DB_PASSWORD
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: password
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: ["/cloud_sql_proxy",
"-instances=danava-test:us-central1:swiggy-graphql-serverless=tcp:5432"]