-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.yaml
More file actions
56 lines (56 loc) · 1.17 KB
/
app.yaml
File metadata and controls
56 lines (56 loc) · 1.17 KB
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
48
49
50
51
52
53
54
55
56
apiVersion: apps/v1
kind: Deployment
metadata:
name: script-push
labels:
app: scripts
spec:
replicas: 3
selector:
matchLabels:
app: scripts
template:
metadata:
labels:
app: scripts
spec:
containers:
- name: script-push
image: gcr.io/mechmania2017/script-push:latest
ports:
- containerPort: 3000
env:
- name: MONGO_URL
valueFrom:
secretKeyRef:
name: creds
key: mongo
- name: RABBITMQ_URI
valueFrom:
secretKeyRef:
name: creds
key: rabbitmq
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: creds
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: creds
key: aws_secret_access_key
---
apiVersion: v1
kind: Service
metadata:
name: script-push-service
spec:
type: LoadBalancer
selector:
app: scripts
ports:
- port: 80
name: script-push-service
targetPort: 3000
protocol: TCP