forked from microsoft/python-sample-vscode-flask-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-sample.yaml
More file actions
38 lines (38 loc) · 749 Bytes
/
python-sample.yaml
File metadata and controls
38 lines (38 loc) · 749 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-flask
spec:
replicas: 1
selector:
matchLabels:
app: python-flask
template:
metadata:
labels:
app: python-flask
spec:
containers:
- name: python-flask
image: acrsandboxjeroenbd.azurecr.io/pipelines-python-tutorial-docker:v1.1
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 5000 # ports to expose from the container
---
apiVersion: v1
kind: Service
metadata:
name: python-flask
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 5000
selector:
app: python-flask