-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
62 lines (62 loc) · 1.12 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-coin-deploy
namespace: default
labels:
app: web-coin
enviroment: cluster-a
spec:
replicas: 2
selector:
matchLabels:
app: web-coin
template:
metadata:
labels:
app: web-coin
spec:
containers:
- name: web-coin
image: natai7/fastapi_html_bitcoin_printer:0.02
ports:
- containerPort: 81
resources: # optional and dont set cpu limit
requests:
cpu: 100m
memory: 200Mi
limits:
memory: 500Mi
cpu: 200m
---
apiVersion: v1
kind: Service
metadata:
name: web-coin-service
namespace: default
labels:
enviroment: cluster-a
spec:
#type: NodePort
selector:
app: web-coin
ports:
- protocol: TCP
port: 81
targetPort: 81
#nodePort: 30081 #port for entry to node
---
apiVersion: v1
kind: Service
metadata:
name: blank-service
namespace: default
labels:
enviroment: cluster-a
spec:
#type: NodePort
ports:
- protocol: TCP
port: 82
targetPort: 82
#nodePort: 30082 #port for entry to node