forked from machine-learning-apps/Issue-Label-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployments.yaml
77 lines (77 loc) · 2.01 KB
/
deployments.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
apiVersion: apps/v1
kind: Deployment
metadata:
name: ml-github-app
namespace: mlapp
labels:
app: ml-github-app
spec:
replicas: 9
selector:
matchLabels:
app: ml-github-app
template:
metadata:
labels:
app: ml-github-app
spec:
containers:
- name: ml-github-app
image: hamelsmu/mlapp
command: ["python", "app.py"]
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 10
periodSeconds: 3
env:
- name: PRIVATE_KEY
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: PRIVATE_KEY
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: DATABASE_URL
- name: WEBHOOK_SECRET
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: WEBHOOK_SECRET
- name: APP_ID
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: APP_ID
- name: GCP_PROJECT_ID
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: GCP_PROJECT_ID
- name: GCP_PUBSUB_TOPIC_NAME
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: GCP_PUBSUB_TOPIC_NAME
- name: PUBSUB_CREDENTIALS_JSON_BLOB
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: PUBSUB_CREDENTIALS_JSON_BLOB
- name: FLASK_ENV
value: production
- name: PORT
value: '3000'
- name: APP_URL
value: https://mlbot.net/
- name: APP_URL_HEROKU
value: https://fathomless-forest-27162.herokuapp.com/
- name: authors
value: 'c'
ports:
- containerPort: 443
- containerPort: 80
- containerPort: 3000