-
Notifications
You must be signed in to change notification settings - Fork 1
/
k8s.yaml
46 lines (46 loc) · 885 Bytes
/
k8s.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-simple
spec:
replicas: 1
selector:
matchLabels:
app: flask-simple
template:
metadata:
labels:
app: flask-simple
spec:
nodeSelector:
'kubernetes.io/os': linux
containers:
- name: flask-simple
image: anthonynguyen334/flask-codestream:latest
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: flask-simple
annotations:
prometheus.io/scrape: 'true'
labels:
name: flask-simple
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 5000
selector:
app: flask-simple