-
Notifications
You must be signed in to change notification settings - Fork 0
/
stockpilot-deploy.yaml
66 lines (64 loc) · 1.44 KB
/
stockpilot-deploy.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
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: stockpilot
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: stockpilot
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: stockpilot
spec:
ports:
- port: 80
protocol: TCP
selector:
app: stockpilot
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stockpilot-backend
spec:
selector:
matchLabels:
app: stockpilot
replicas: 1
template:
metadata:
labels:
app: stockpilot
spec:
containers:
- name: stockpilot-backend
image: lakshanbanneheke/stockpilot:latest
imagePullPolicy: Always
securityContext:
privileged: true
ports:
- containerPort: 80
env:
- name: FLASK_APP
value: "app.py"
- name: FLASK_ENV
value: "development"
- name: FLASK_RUN_PORT
value: "80"
- name: SECRET_KEY
value: "stockpilot"
- name: MONGO_URL_GENERAL
value: "mongodb+srv://SEPU02:[email protected]/test_sep?retryWrites=true&w=majority"
- name: MONGO_URL_ADMIN
value: "mongodb+srv://SEPU01:[email protected]/test_sep?retryWrites=true&w=majority"