forked from lalualex17/Python-Flask-RestAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpythonappflask.yaml
More file actions
44 lines (44 loc) · 817 Bytes
/
pythonappflask.yaml
File metadata and controls
44 lines (44 loc) · 817 Bytes
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: pythonapp
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 20
selector:
matchLabels:
app: pythonapp
template:
metadata:
labels:
app: pythonapp
spec:
containers:
- name: pythonapp
image: dockersyampawan/python-flask-api:TAG
ports:
- containerPort: 5000
resources:
requests:
cpu: 300m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: pythonappsvc
spec:
type: NodePort
selector:
app: pythonapp
ports:
- port: 80
targetPort: 5000