-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflask-app.yaml
44 lines (44 loc) · 900 Bytes
/
flask-app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-app
namespace: hslu-app-hybrid
spec:
replicas: 2
selector:
matchLabels:
app: flask-app
template:
metadata:
labels:
app: flask-app
spec:
containers:
- name: flask-app
image: docker.io/artzoul/flask-app:latest
ports:
- containerPort: 8080
env:
- name: DATABASE_URL
value: "postgresql://root:rotkreuz@postgres.hslu-app-hybrid.svc.clusterset.local:5432/hsludatabase"
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: flask-app
namespace: hslu-app-hybrid
spec:
selector:
app: flask-app
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer