-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
47 lines (47 loc) · 1.03 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
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: nest-mongo-auth-deployment
spec:
selector:
matchLabels:
app: nest-mongo-auth
replicas: 1
template:
metadata:
labels:
app: nest-mongo-auth
env: development
spec:
containers:
- name: nest-mongo-auth
image: gcr.io/{{ YOUR GKE PROJECT ID }}/nest-mongo-auth:{{ YOUR TAG VERSION }}
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: PORT
value: "3000"
- name: LOG_LEVEL
value: "info"
- name: NODE_ENV
value: "development"
- name: JWT_SECRET
value: "user2020"
- name: EXPIRES_IN
value: "3600"
- name: DB_URL
value: "{{ YOUR MONGODB SRV CONNECTION STRING }}"
---
apiVersion: v1
kind: Service
metadata:
name: nest-mongo-auth-service
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 3000
protocol: TCP
selector:
app: nest-mongo-auth